6#ifndef ZEPHYR_INCLUDE_POSIX_SYS_SOCKET_H_
7#define ZEPHYR_INCLUDE_POSIX_SYS_SOCKET_H_
12#define SHUT_RD ZSOCK_SHUT_RD
13#define SHUT_WR ZSOCK_SHUT_WR
14#define SHUT_RDWR ZSOCK_SHUT_RDWR
16#define MSG_PEEK ZSOCK_MSG_PEEK
17#define MSG_TRUNC ZSOCK_MSG_TRUNC
18#define MSG_DONTWAIT ZSOCK_MSG_DONTWAIT
19#define MSG_WAITALL ZSOCK_MSG_WAITALL
48int socket(
int family,
int type,
int proto);
49int socketpair(
int family,
int type,
int proto,
int sv[2]);
irp nz macro MOVR cc s mov cc s endm endr irp aw macro LDR aa s
Definition asm-macro-32-bit-gnu.h:17
size_t socklen_t
Length of a socket address.
Definition net_ip.h:172
__SIZE_TYPE__ ssize_t
Definition types.h:28
BSD Sockets compatible API definitions.
flags
Definition parser.h:96
int bind(int sock, const struct sockaddr *addr, socklen_t addrlen)
ssize_t send(int sock, const void *buf, size_t len, int flags)
ssize_t recvfrom(int sock, void *buf, size_t max_len, int flags, struct sockaddr *src_addr, socklen_t *addrlen)
int getsockopt(int sock, int level, int optname, void *optval, socklen_t *optlen)
int socket(int family, int type, int proto)
int getpeername(int sock, struct sockaddr *addr, socklen_t *addrlen)
int socketpair(int family, int type, int proto, int sv[2])
int accept(int sock, struct sockaddr *addr, socklen_t *addrlen)
int listen(int sock, int backlog)
int setsockopt(int sock, int level, int optname, const void *optval, socklen_t optlen)
ssize_t sendmsg(int sock, const struct msghdr *message, int flags)
int shutdown(int sock, int how)
int connect(int sock, const struct sockaddr *addr, socklen_t addrlen)
int getsockname(int sock, struct sockaddr *addr, socklen_t *addrlen)
ssize_t sendto(int sock, const void *buf, size_t len, int flags, const struct sockaddr *dest_addr, socklen_t addrlen)
ssize_t recv(int sock, void *buf, size_t max_len, int flags)
ssize_t recvmsg(int sock, struct msghdr *msg, int flags)
int l_linger
Definition socket.h:27
int l_onoff
Definition socket.h:26
Message struct.
Definition net_ip.h:257
Generic sockaddr struct.
Definition net_ip.h:408