![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
网络
龚慧林
积极、乐观、努力
展开
-
windows socket编程入门示例1
windows socket编程,基础理论部分就不再说了,这里给出的tcp服务器端和tcp客户端的代码,主要描叙了基于tcp协议的windows socket编程的一般流程而已。原创 2017-11-21 20:42:00 · 513 阅读 · 0 评论 -
windows socket编程入门示例2
// tcpSocketServer.cpp#include #include #include #pragma comment(lib,"ws2_32.lib")#define IP_ADDRESS "127.0.0.1"#define PORT 5678static DWORD WINAPI RecvThread(void *Param);static DWORD WIN原创 2017-11-22 12:37:50 · 364 阅读 · 0 评论 -
windows socket编程入门示例3
// Lock.h#ifndef _Lock_H#define _Lock_H#include class CriticalSection{private: CRITICAL_SECTION g_cs; //临界区 public: CriticalSection(); ~CriticalSection(); void Lock(); void UnLock()转载 2017-11-22 13:31:37 · 342 阅读 · 0 评论