www.wfdy.net > #inCluDE <winsoCk2.h>

#inCluDE <winsoCk2.h>

//客户端 tcp#include#include#include#include#include#pragma comment(lib,"WS2_32")class CInitSock{public: CInitSock(BYTE minorVer=2,BYTE majorVer=2) { WORD Version=MAKEWORD(minorVer,majorVer); WSAData m_data; if(::WSAStartup(Ver...

Winsock,服务器多线程的简单演示,参考MSDN示例。 // Client.cpp #include #include #define BUFLEN 512 #pragma comment(lib...

网站地图

All rights reserved Powered by www.wfdy.net

copyright ©right 2010-2021。
www.wfdy.net内容来自网络,如有侵犯请联系客服。zhit325@qq.com