windows平台下:
头文件:#include<ws2tcpip.h>
linux平台下:
下面两个头文件都有定义:
1)#include <sys/socket.h>
2)#include <unistd.h>
详细定义:typedef int socklen_t;