摘要:
//Server #include "stdafx.h" #include #include #include using namespace std; #pragma comment (lib,"ws2_32.lib") #define PORT 6000 //UDP Server int main() { //初始化网络环境 WSADATA wsa; if (WS... 阅读全文
posted @ 2017-07-04 20:52
菜鸟也有高飞的时候
阅读(1960)
评论(0)
推荐(0)
摘要:
#include "stdafx.h" #include #include #include using namespace std; #pragma comment (lib,"ws2_32.lib") //Client int main() { WSADATA wsa; if (WSAStartup(MAKEWORD(2, 2), &wsa) != 0) { ... 阅读全文
posted @ 2017-07-04 16:15
菜鸟也有高飞的时候
阅读(285)
评论(0)
推荐(0)
摘要:
//Sever #include "stdafx.h" #include #include #include using namespace std; #pragma comment (lib,"ws2_32.lib") #define PORT 6000 DWORD WINAPI clientProc(LPVOID lparam) { //为客户端服务 SOCKET soc... 阅读全文
posted @ 2017-07-04 10:57
菜鸟也有高飞的时候
阅读(234)
评论(0)
推荐(0)

浙公网安备 33010602011771号