-
tcp
tcp-IP终端工具-tcp-IP terminal tools
- 2022-01-26 08:21:08下载
- 积分:1
-
内存管理类(readme.txt有详细介绍)
内存管理类(readme.txt有详细介绍)-memory management category (readme.txt more details)
- 2023-07-28 01:10:02下载
- 积分:1
-
一个线程池的一个类,基本使用如下:
一个线程驰的类, 下面的是基本的使用方法 struct TSession { SOCKET socket int id } class myIocp:public CIOCP { public: void OnRead(void * p, char * buf, int len) void OnAccept(SOCKET socket) void OnClose(void * p) } void myIocp::OnAccept(SOCKET socket) { TSession *s = new TSession s->socket = socket //这里可以对连接的session进行自己的操作,例如给id找一个唯一的值 SetIoCompletionPort(socket, s) // 使连接socket与一个自定义结构体关联 } void myIocp::OnRead(void * p, char * buf, int len) { TSession *s = (TSession *)p send(s->socket, buf, len, 0) // 这里只是简单的把收到的消息返回给客户端 ... } void myIocp::OnClose(void * p) { delete p } myIoncp iocp main() { ... iocp.listen(4311) // 开始监听网络端口,等待客户端连接 ... }-A class for thread pool,basic usage below:
struct TSession { SOCKET socket int id } class myIocp:public CIOCP
{ public:
void OnRead(void* p, char* buf, int len)
void OnAccept(SOCKET socket)
void OnClose(void* p) }
void myIocp::OnAccept(SOCKET socket)
{ TSession*s = new TSession s->socket = socket
//here you can do something about connecti
- 2022-07-17 05:14:52下载
- 积分:1
-
practical third category, which is very easy to achieve, mapping, status bar pro...
一些实用的第三方类,实现功能非常方便,贴图, 状态栏进度条, 普通进度条,ADO操作,EXECLE操作, 菜单图表, -practical third category, which is very easy to achieve, mapping, status bar progress of the general progress of the operation ADO, EXECLE operation, and the menu chart
- 2022-05-25 15:26:54下载
- 积分:1
-
VC导入Word例子源代码
VC导入Word例子源代码-VC into Word example source code
- 2022-03-22 02:32:46下载
- 积分:1
-
Prepared using C calculator we can work together to study learning and common pr...
用C编写的计算器,大家一起学习学习,共同进步-Prepared using C calculator we can work together to study learning and common progress
- 2022-12-17 22:25:03下载
- 积分:1
-
canny 边缘检测算法,一个完整的图像边缘提取算法
canny 边缘检测算法,一个完整的图像边缘提取算法-canny edge detection
- 2022-09-20 02:30:02下载
- 积分:1
-
m8sampledeyuandaima
M8Sampledeyuandaima -M8Sampledeyuandaima
- 2023-03-09 23:20:03下载
- 积分:1
-
VFW捕获采集
VFW(Video for Windows)是Microsoft推出的关于数字视频的一个软件开发包。该代码是基于VC6.0+VFW下的视频采集,可以拍照,预览和录像。功能简单,适合入门。在笔记本(带摄像头)下测试通过。
- 2022-04-22 09:49:31下载
- 积分:1
-
通过重画鼠标所在区域,显示一个与鼠标位置跟随的图片或者图形,非常好玩。
通过重画鼠标所在区域,显示一个与鼠标位置跟随的图片或者图形,非常好玩。-Mouse through the re-drawing the region, showing the location of a mouse to follow the pictures or graphics, very fun.
- 2022-02-04 04:56:42下载
- 积分:1