socket.h
Overview
Related Modules:
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
Macros
Functions
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) |