-
game snake - Coursework
- 2022-11-11 12:35:03下载
- 积分: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
-
packetnt,从事SOCKET,INTERNET,TCPIP,UDP,MULTIMEDIA开发工程师
packetnt,从事SOCKET,INTERNET,TCPIP,UDP,MULTIMEDIA开发工程师-packetnt a engineer who work for socker,internet,tcp/ip,udp and multimedia.
- 2023-02-06 08:10:04下载
- 积分:1
-
Sort Sort Sort Sort Sort
Sort Sort Sort -Sort Sort Sort Sort Sort
- 2023-01-18 20:20:03下载
- 积分:1
-
此程序是用VC++做的,简要介绍了VC开发工具的使用技巧
此程序是用VC++做的,简要介绍了VC开发工具的使用技巧-This procedure is done with the VC, VC briefed the development of skills in the use of tools
- 2023-07-03 00:35:04下载
- 积分:1
-
hotelManage hotel management to provide the application, cancellation room
hotelManage
酒店管理
提供申请,注销房间-hotelManage hotel management to provide the application, cancellation room
- 2022-02-01 21:57:00下载
- 积分:1
-
塞班例子程序,完整的可以编译通过的代码,希望对初学塞班程序的朋友有所帮助,谢谢交流。!...
塞班例子程序,完整的可以编译通过的代码,希望对初学塞班程序的朋友有所帮助,谢谢交流。!-Saipan example program, a complete code can be compiled by the hope that a friend of the beginner program Saipan help, thank you share. !
- 2022-06-01 02:48:21下载
- 积分:1
-
基于Java的简易俄罗斯方块
基于JAVA编写的俄罗斯方块游戏,可以实现暂停,和恢复正常游戏,方块变形,加速下落,积分牌等功能,目前不支持保存游戏,以单独窗口方式运行
- 2022-06-19 12:02:04下载
- 积分:1
-
一个小应用程序,用来测试位段的操作,用VC编写.
一个小应用程序,用来测试位段的操作,用VC编写.-a small application that used to test the operation of the place, with VC prepared.
- 2022-06-28 12:28:52下载
- 积分:1
-
precise timer multimedia production with translucent effects timer source, Borla...
精密计时器多媒体制作半透明效果计时器源,Borland C Builder 6
- 2022-04-12 07:10:45下载
- 积分:1