标签:
WSAStartup(WORD wVersion,WSADATA* wsaData);
socket(AF_INET,SOCK_STREAM,0);
SOCKADDR_IN addrSrv;//将IP-PORT存入addrSrv
connect(SOCKET,(SOCKADDR*),sizeof(SOCKADDR));
recv(SOCKET,recvBuf,size,0);
send(SOCKET,sendBuf,strlen(sendBuf),0);
closesocket(SOCKET);
WSACleanup();
标签:
原文地址:http://www.cnblogs.com/howardhuo/p/4513958.html