General Class | System Calls | Details |
Socket Operation | socket() | create an endpoint for communication and return a descriptor |
socketpair() | create an unnamed pair of connected sockets in the specified domain | |
setsockopt() / getsockopt() | get and set options on sockets | |
getsockname() | get socket name | |
bind() | bind a name to a socket. It assigns the address to the socket | |
listen() | listen for connections on a socket, used to accept incoming connection requests using accept() | |
accept(), accept4() | accept a connection on a socket | |
connect() | initiate a connection on a socket | |
shutdown() | shut down part of a full-duplex connection | |
Send and Receive | send(), sendto(), sendmsg() | used to transmit a message to another socket |
recv(), recvfrom(), recvmsg() | receive a message from a socket | |
sendmmsg() | send multiple message on a socket | |
recvmmsg() | receive multiple messages on a socket | |
General calls | read() | read from a file descriptor |
write() | write to a file descriptor | |
open() | open a file descriptor to read | |
close() | close a file descriptor |