To create a socket, we call the socket function.
#include <sys/socket.h>
int socket(int domain, int type, int protocol);
Returns: file (socket) descriptor if OK, −1 on error
socket.h位于/usr/include/i386-linux-gnu/sys/目录下