网络编程——客户端简单流程
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();