-
工具箱万能的超级大国,很方便
超强万能工具箱,方便实在-Toolbox omnipotent superpower, it is convenient
- 2022-09-15 21:20:03下载
- 积分:1
-
VC写的日历(MFC)
VC写的日历(MFC)-VC write the calendar (MFC)
- 2023-08-08 19:55:03下载
- 积分:1
-
请认真书写上传资料的详细功能、包含内容说明(至少要20个字)。尽量不要让站长把时间都花费在为您修正说明上。压缩包解压时不能有密码。...
请认真书写上传资料的详细功能、包含内容说明(至少要20个字)。尽量不要让站长把时间都花费在为您修正说明上。压缩包解压时不能有密码。
-Please carefully write a detailed upload features, including the content description (at least 20 words). Try not to let owners to spend time on your revised instructions. Archive decompression there can not be password.
- 2022-02-01 17:34:01下载
- 积分: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
-
Visual C++源代码管理系统的小商品库存管理
visual c++源代码 小型管理系统 物品库存管理-visual c++ source code management system for small goods inventory management
- 2022-12-20 08:50:03下载
- 积分:1
-
桌面时钟源码
采用VC编写的界面超漂亮的桌面时钟,压缩包内部包含所有源代码和可运行程序,文件包含必要的注释,
具有C++基础的同学可以读懂,具有一定的参考价值,欢迎初学VC的同学可以下载学习,一起进步。
- 2022-01-22 16:06:48下载
- 积分:1
-
Graphics when used in the treatment of the division, and directly editing the di...
在处理图形时用于除法的进行,直接编辑出除法来-Graphics when used in the treatment of the division, and directly editing the division to
- 2022-07-10 04:37:27下载
- 积分:1
-
一个网络游戏的启动界面,用vc写的,里面自己写的CBitmapDialog类非常值的学习MFC界面编程的人研究和学习。...
一个网络游戏的启动界面,用vc写的,里面自己写的CBitmapDialog类非常值的学习MFC界面编程的人研究和学习。-A network interface to start the game, written by vc, which itself is written in the value category CBitmapDialog learning MFC programming interface studies and learning.
- 2022-08-24 00:01:40下载
- 积分:1
-
游戏编程初步,可以根据用户的选择生成脚色信息
游戏编程初步,可以根据用户的选择生成脚色信息-preliminary game programming, according to the user"s choice of color information generated feet
- 2022-02-07 22:29:18下载
- 积分:1
-
js 封装的htc 控件,功能很好用
js 封装的htc 控件,功能很好用-js package htc control, function very well with
- 2022-05-10 12:38:12下载
- 积分:1