20 #define MSG_DONTWAIT 0x0020 23 #define SO_REUSEADDR 0x0004 24 #define SO_NBIO 0x1014 25 #define SO_NONBLOCK 0x1016 30 #define SO_EWOULDBLOCK 6 33 #define EWOULDBLOCK SO_EWOULDBLOCK 34 #define EAGAIN SO_EWOULDBLOCK 49 #define sockaddr_storage sockaddr_in 65 int listen(
int sockfd,
int backlog);
72 int socket(
int domain,
int type,
int protocol);
GLbitfield GLuint64 timeout
Definition: glext.h:7831
int accept(int sockfd, struct sockaddr *addr, socklen_t *addrlen)
int bind(int sockfd, const struct sockaddr *addr, socklen_t addrlen)
Definition: sockets.h:204
char sa_data[14]
Definition: sockets.h:49
int l_linger
Definition: sockets.h:96
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:8418
ssize_t recvfrom(int sockfd, void *buf, size_t len, int flags, struct sockaddr *src_addr, socklen_t *addrlen)
GLenum GLsizei len
Definition: glext.h:7389
ssize_t recv(int sockfd, void *buf, size_t len, int flags)
int getpeername(int sockfd, struct sockaddr *addr, socklen_t *addrlen)
uint32_t socklen_t
Definition: socket.h:37
GLenum type
Definition: glext.h:6233
int getsockname(int sockfd, struct sockaddr *addr, socklen_t *addrlen)
ssize_t send(int sockfd, const void *buf, size_t len, int flags)
GLenum const GLvoid * addr
Definition: glext.h:10528
int connect(int sockfd, const struct sockaddr *addr, socklen_t addrlen)
GLint level
Definition: glext.h:6293
Definition: sockets.h:217
ssize_t sendto(int sockfd, const void *buf, size_t len, int flags, const struct sockaddr *dest_addr, socklen_t addrlen)
int socketclose(int sockfd)
int socket(int domain, int type, int protocol)
int shutdown(int sockfd, int how)
int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout)
int getsockopt(int sockfd, int level, int optname, void *optval, socklen_t *optlen)
int setsockopt(int sockfd, int level, int optname, const void *optval, socklen_t optlen)
sa_family_t sa_family
Definition: socket.h:42
int listen(int sockfd, int backlog)
uint16_t sa_family_t
Definition: socket.h:38
GLbitfield flags
Definition: glext.h:7828
unsigned short uint16_t
Definition: stdint.h:125
int l_onoff
Definition: sockets.h:95
unsigned int uint32_t
Definition: stdint.h:126
uint32_t socklen_t
Definition: netdb.h:10