-
用C++编写的能够在CFileDialog中增加一对按纽,需要使用Visual C++ 6.0(23KB)...
用C++编写的能够在CFileDialog中增加一对按纽,需要使用Visual C++ 6.0(23KB) -code with C++ which enable adding a couple of button in CFileDialog, using Visual C++6.0(23KB)
- 2022-01-21 00:26:29下载
- 积分:1
-
一个清除各种历史记录的代码
一个清除各种历史记录的代码-a clear historical record of all code
- 2022-02-06 04:41:32下载
- 积分:1
-
java 反编译
挺不错的,我们经常会用到它,但不要用于
商业目的啊...
java 反编译
挺不错的,我们经常会用到它,但不要用于
商业目的啊-- sounds very good, we often will use it, but not for commercial purposes ah
- 2022-05-06 20:21:57下载
- 积分:1
-
vega MFC范例,教你如何在MFC中使用vega
vega MFC范例,教你如何在MFC中使用vega-vega MFC example, teach you how to use vega in MFC
- 2022-05-07 22:43:33下载
- 积分:1
-
线程与进程的一个实例
线程与进程的一个实例-threads and processes an example
- 2022-03-12 12:14:15下载
- 积分:1
-
固定电话查询!是固定电话的!!准确性还有待研究
固定电话查询!是固定电话的!!准确性还有待研究-Fixed telephone inquiries! Fixed phone!!
- 2022-03-05 17:33:22下载
- 积分:1
-
通过配置getfiles.ini文件即可进行文件的传送
通过配置getfiles.ini文件即可进行文件的传送-Getfiles.ini file can be configured to transfer files
- 2023-05-25 13:10:04下载
- 积分:1
-
HFSS仿真的helix结构,以及结果照片
HFSS仿真的helix结构,以及结果照片-HFSS simulation of the helix structure
- 2022-06-02 09:21:20下载
- 积分:1
-
多功能万年历,有阴历的显示
多功能万年历,有阴历的显示-multifunctional hefty almanac, the lunar calendar display
- 2022-08-16 09:25:22下载
- 积分: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