随笔分类 -  network programming for microsoft windows,second edition

anthony jones
摘要:#include "stdafx.h"#include <WinSock2.h>int _tmain(int argc, _TCHAR* argv[]){ WSADATA wsaData; int Ret; //加载winsock库 第二个参数 用与其加载库版本有关信息填充这个结构。版本2.2 if ((Ret = WSAStartup(MAKEWORD(2,2),&wsaData))!= 0) { printf("wsastartup failed with error %d \n",Ret); return 0; } if(WSA 阅读全文
posted @ 2011-09-21 21:34 jc24 阅读(178) 评论(0) 推荐(0)