函数原型:
int connect (int sockfd,struct sockaddr * serv_addr,int addrlen);
头文件:
linux下
#include<sys/types.h>
#include<sys/socket.h>
windows下
#include <winsock.h>
#pragma comment(lib,"WS2_32.lib")
Powered By ZEROPLACE.CN CopyRight 2008, 汤姆大叔的博客 浙ICP备09078797号-1