Linux socket programming
2016-05-26 本文已影响30人
s7_200_smart
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/目录下