Zephyr API 3.6.99
Loading...
Searching...
No Matches
socket.h File Reference
#include <sys/types.h>
#include <zephyr/net/socket.h>

Go to the source code of this file.

Data Structures

struct  linger
 

Macros

#define SHUT_RD   ZSOCK_SHUT_RD
 
#define SHUT_WR   ZSOCK_SHUT_WR
 
#define SHUT_RDWR   ZSOCK_SHUT_RDWR
 
#define MSG_PEEK   ZSOCK_MSG_PEEK
 
#define MSG_TRUNC   ZSOCK_MSG_TRUNC
 
#define MSG_DONTWAIT   ZSOCK_MSG_DONTWAIT
 
#define MSG_WAITALL   ZSOCK_MSG_WAITALL
 

Functions

int accept (int sock, struct sockaddr *addr, socklen_t *addrlen)
 
int bind (int sock, const struct sockaddr *addr, socklen_t addrlen)
 
int connect (int sock, const struct sockaddr *addr, socklen_t addrlen)
 
int getpeername (int sock, struct sockaddr *addr, socklen_t *addrlen)
 
int getsockname (int sock, struct sockaddr *addr, socklen_t *addrlen)
 
int getsockopt (int sock, int level, int optname, void *optval, socklen_t *optlen)
 
int listen (int sock, int backlog)
 
ssize_t recv (int sock, void *buf, size_t max_len, int flags)
 
ssize_t recvfrom (int sock, void *buf, size_t max_len, int flags, struct sockaddr *src_addr, socklen_t *addrlen)
 
ssize_t recvmsg (int sock, struct msghdr *msg, int flags)
 
ssize_t send (int sock, const void *buf, size_t len, int flags)
 
ssize_t sendmsg (int sock, const struct msghdr *message, int flags)
 
ssize_t sendto (int sock, const void *buf, size_t len, int flags, const struct sockaddr *dest_addr, socklen_t addrlen)
 
int setsockopt (int sock, int level, int optname, const void *optval, socklen_t optlen)
 
int shutdown (int sock, int how)
 
int sockatmark (int s)
 
int socket (int family, int type, int proto)
 
int socketpair (int family, int type, int proto, int sv[2])
 

Macro Definition Documentation

◆ MSG_DONTWAIT

#define MSG_DONTWAIT   ZSOCK_MSG_DONTWAIT

◆ MSG_PEEK

#define MSG_PEEK   ZSOCK_MSG_PEEK

◆ MSG_TRUNC

#define MSG_TRUNC   ZSOCK_MSG_TRUNC

◆ MSG_WAITALL

#define MSG_WAITALL   ZSOCK_MSG_WAITALL

◆ SHUT_RD

#define SHUT_RD   ZSOCK_SHUT_RD

◆ SHUT_RDWR

#define SHUT_RDWR   ZSOCK_SHUT_RDWR

◆ SHUT_WR

#define SHUT_WR   ZSOCK_SHUT_WR

Function Documentation

◆ accept()

int accept ( int sock,
struct sockaddr * addr,
socklen_t * addrlen )

◆ bind()

int bind ( int sock,
const struct sockaddr * addr,
socklen_t addrlen )

◆ connect()

int connect ( int sock,
const struct sockaddr * addr,
socklen_t addrlen )

◆ getpeername()

int getpeername ( int sock,
struct sockaddr * addr,
socklen_t * addrlen )

◆ getsockname()

int getsockname ( int sock,
struct sockaddr * addr,
socklen_t * addrlen )

◆ getsockopt()

int getsockopt ( int sock,
int level,
int optname,
void * optval,
socklen_t * optlen )

◆ listen()

int listen ( int sock,
int backlog )

◆ recv()

ssize_t recv ( int sock,
void * buf,
size_t max_len,
int flags )

◆ recvfrom()

ssize_t recvfrom ( int sock,
void * buf,
size_t max_len,
int flags,
struct sockaddr * src_addr,
socklen_t * addrlen )

◆ recvmsg()

ssize_t recvmsg ( int sock,
struct msghdr * msg,
int flags )

◆ send()

ssize_t send ( int sock,
const void * buf,
size_t len,
int flags )

◆ sendmsg()

ssize_t sendmsg ( int sock,
const struct msghdr * message,
int flags )

◆ sendto()

ssize_t sendto ( int sock,
const void * buf,
size_t len,
int flags,
const struct sockaddr * dest_addr,
socklen_t addrlen )

◆ setsockopt()

int setsockopt ( int sock,
int level,
int optname,
const void * optval,
socklen_t optlen )

◆ shutdown()

int shutdown ( int sock,
int how )

◆ sockatmark()

int sockatmark ( int s)

◆ socket()

int socket ( int family,
int type,
int proto )

◆ socketpair()

int socketpair ( int family,
int type,
int proto,
int sv[2] )