First page Back Continue Last page Summary Graphics
socket
#include <sys/types.h>
#include <sys/socket.h>
int socket(int domain, int type, int protocol);
Creates an endpoint for communication and returns a descriptor.
On success returns a descriptor referencing the socket. On failure returns -1 and sets errno appropriately.