# socket.h ## **Overview** **Related Modules:** [NET](NET.md) **Description:** Provides functions and data structures related to network operations. For example, you can use the functions to send and receive network data, manage network addresses, and convert bytes. **Since:** 1.0 **Version:** 1.0 ## **Summary** ## Data Structures
socket (int domain, int type, int protocol) |
|
shutdown (int sockfd, int how) |
|
bind (int sockfd, const struct sockaddr *addr, socklen_t addrlen) |
|
connect (int sockfd, const struct sockaddr *addr, socklen_t addrlen) |
|
listen (int sockfd, int backlog) |
|
accept (int sockfd, struct sockaddr *__restrict addr, socklen_t *__restrict addrlen) |
|
getsockname (int fd, struct sockaddr *restrict addr, socklen_t *restrict len) |
|
getpeername (int fd, struct sockaddr *restrict addr, socklen_t *restrict len) |
|
send (int fd, const void *buf, size_t len, int flags) |
|
recv (int fd, void *buf, size_t len, int flags) |
|
sendto (int fd, const void *buf, size_t len, int flags, const struct sockaddr *addr, socklen_t alen) |
|
recvfrom (int fd, void *__restrict buf, size_t len, int flags, struct sockaddr *__restrict addr, socklen_t *__restrict alen) |
|
sendmsg (int fd, const struct msghdr *msg, int flags) |
|
recvmsg (int fd, struct msghdr *msg, int flags) |
|
getsockopt (int fd, int level, int optname, void *__restrict optval, socklen_t *__restrict optlen) |
|
setsockopt (int fd, int level, int optname, const void *optval, socklen_t optlen) |