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(); ...
2011-05-06 17:40 | 阅读 1159 次 | 评论 0 条
浏览2217次