-
word录入化学式的好工具,可以轻松的录入分子式等
word录入化学式的好工具,可以轻松的录入分子式等-word input chemical formula of a good tool, you can easily input formula, etc.
- 2022-01-28 08:03:16下载
- 积分:1
-
用c进行浮点运算的新思路
用c进行浮点运算的新思路-new thinking of float number caculation in c
- 2022-04-21 00:34:56下载
- 积分:1
-
A compilation of their previous small program to do the hope that useful for eve...
自己以前做的汇编小程序,希望对大家有用。-A compilation of their previous small program to do the hope that useful for everyone.
- 2022-01-27 17:56:26下载
- 积分:1
-
人工智能极大极小搜索,实现了井字棋的智能博弈程序。
人工智能极大极小搜索,实现了井字棋的智能博弈程序。-Minimax artificial intelligence search and realized the groined smart game of chess procedures.
- 2022-02-06 10:15:33下载
- 积分:1
-
bioapi 2.0
BioAPI 2.0项目代码。
- 2022-04-06 17:51:00下载
- 积分:1
-
Lot of basic practical C++ source code, suitable for beginners to use, such as r...
许多基础实用的C++源码,适合初学者使用,如递归反转字符串-Lot of basic practical C++ source code, suitable for beginners to use, such as recursive string inversion. . . . .
- 2022-02-12 00:05:34下载
- 积分:1
-
基于Wince4.2操作系统,evc4.0开发环境下Tree控件的使用
基于Wince4.2操作系统,evc4.0开发环境下Tree控件的使用-Wince4.2 based operating systems, development environments evc4.0 Tree Controls use
- 2022-03-22 01:52:34下载
- 积分:1
-
天气pogota驯服
验货员验货员验货员验货员
- 2022-03-18 12:21:46下载
- 积分:1
-
Component fot directory monitor
Component fot directory monitor
- 2023-02-28 09:30:04下载
- 积分: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