-
以太网通讯例子
以太网通讯例子-服务器,配合以太网通讯例子-客户端用-Ethernet communication example- server, with the Ethernet communication example- a client with
- 2023-01-11 12:05:03下载
- 积分:1
-
显示WINDOWS所有窗体的示例代码程序,可决定将窗口显示或隐藏...
显示WINDOWS所有窗体的示例代码程序,可决定将窗口显示或隐藏-show all forms of sample code, may decide to window to show or hide
- 2022-07-09 14:16:06下载
- 积分: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
-
IC卡数据读写代码下载
IC卡数据读写代码下载-IC card reader data downloaded code
- 2023-03-16 01:50:04下载
- 积分:1
-
This is a hotel management system, is compiled by the teacher in class for vb st...
这是一个宾馆管理系统,是上课时老师编的,用于vb学习参考,或课程设计-This is a hotel management system, is compiled by the teacher in class for vb study reference, or curriculum design
- 2022-05-09 07:16:47下载
- 积分:1
-
一个样子和东方快车浮动条相拟的汉化小工具。
一个样子和东方快车浮动条相拟的汉化小工具。-a look and the Orient Express of the floating phase of the effort to be small tools.
- 2022-03-01 04:01:12下载
- 积分:1
-
完美国际双开小工具,带一些测试功能,包括对话框程序背景,图片按钮...
完美国际双开小工具,带一些测试功能,包括对话框程序背景,图片按钮-Perfect international pairs to open a small tool, with some test functions, including the dialog box procedure the background, pictures, buttons. . . .
- 2022-07-18 09:12:25下载
- 积分:1
-
这是一个通讯录程序,商店名称,地址,电话,电子邮件。它的。
This is an address book program that stores name, adress, phone, and email. It uses an address book class to implement it. Lots of comments, and easily customizable. It does NOT work w/ borland. It isn t finished, but 95% of it runs. Check back for update
- 2022-04-06 23:36:07下载
- 积分:1
-
趣味程序,有100个示例, 是html文档。
趣味程序,有100个示例, 是html文档。-interesting procedure, one hundred examples of html files.
- 2022-06-11 15:44:55下载
- 积分:1
-
这是一个用VB实现的变换颜色的小程序。
这是一个用VB实现的变换颜色的小程序。-This is a VB transform the color of small programs.
- 2022-01-31 23:49:08下载
- 积分:1