In This Appendix
This appendix groups all the networking library and system calls.
The Sockets API provides tools to help you create sockets and connect to other hosts. This section describes the API relevant to socket creation and connection.
socket() creates a bidirectional channel that typically connects with the network. You can use this channel with network-specific system calls or general file I/O.
#include <resolv.h> #include <sys/socket.h> #include <sys/types.h>int socket(int domain, int type, int protocol);
If successful, the ...