10 #define AF_UNSPEC PF_UNSPEC
11 #define AF_INET PF_INET
16 #define MSG_OOB 0x0001
17 #define MSG_PEEK 0x0002
18 #define MSG_DONTROUTE 0x0004
19 #define MSG_DONTWAIT 0x0020
28 #define SO_REUSEADDR 0x0004
29 #define SO_KEEPALIVE 0x0008
30 #define SO_DONTROUTE 0x0010
31 #define SO_BROADCAST 0x0020
32 #define SO_LINGER 0x0080
33 #define SO_OOBINLINE 0x0100
34 #define SO_TCPSACK 0x0200
35 #define SO_WINSCALE 0x0400
36 #define SO_SNDBUF 0x1001
37 #define SO_RCVBUF 0x1002
38 #define SO_SNDLOWAT 0x1003
39 #define SO_RCVLOWAT 0x1004
40 #define SO_ERROR 0x1007
41 #define SO_TYPE 0x1008
42 #define SO_HOPCNT 0x1009
43 #define SO_MAXMSG 0x1010
44 #define SO_RXDATA 0x1011
45 #define SO_TXDATA 0x1012
46 #define SO_MYADDR 0x1013
47 #define SO_NBIO 0x1014
49 #define SO_NONBLOCK 0x1016
50 #define SO_UNKNOWN1019 0x1019
51 #define SO_UNKNOWN101A 0x101A
52 #define SO_UNKNOWN101B 0x101B
53 #define SO_NOSLOWSTART 0x4000
54 #define SO_RUSRBUF 0x10000
int shutdown(int sockfd, int how)
ssize_t recv(int sockfd, void *buf, size_t len, int flags)
int listen(int sockfd, int backlog)
int getsockname(int sockfd, struct sockaddr *addr, socklen_t *addrlen)
int accept(int sockfd, struct sockaddr *addr, socklen_t *addrlen)
int sockatmark(int sockfd)
int bind(int sockfd, const struct sockaddr *addr, socklen_t addrlen)
ssize_t sendto(int sockfd, const void *buf, size_t len, int flags, const struct sockaddr *dest_addr, socklen_t addrlen)
int getsockopt(int sockfd, int level, int optname, void *optval, socklen_t *optlen)
ssize_t send(int sockfd, const void *buf, size_t len, int flags)
int connect(int sockfd, const struct sockaddr *addr, socklen_t addrlen)
ssize_t recvfrom(int sockfd, void *buf, size_t len, int flags, struct sockaddr *src_addr, socklen_t *addrlen)
int getpeername(int sockfd, struct sockaddr *addr, socklen_t *addrlen)
int setsockopt(int sockfd, int level, int optname, const void *optval, socklen_t optlen)
int socket(int domain, int type, int protocol)