TCP小聊天具体代码实现(VC++)

//TCPserver:#include<Winsock2.h>#include<stdio.h>void main(){ WORD wVersionRequested; WSADATA wsaData; int err; wVersionRequested=MAKEWORD(1,1); err=WSAStartup(wVersionRequested,&amp;wsaData); if(err!=0) { return ; } if(LOBYTE(wsaData.wVersion)!=1||HIBYTE(wsaData.wVersion)!=1) { WSACleanup(); ...
浏览2243次