摘要: 首先是头文件:IOCPServer.h 1 // IOCPServer.h: interface for the CIOCPServer class. 2 3 //我们要做的就是建立一个IOCP,把远程连接的socket句柄绑定到刚才创建的IOCP上,最后创建n个线程,并告诉这n个线程到这个IOCP上去访问数据就可以了。 4 // 5 ////////////////////////////////////////////////////////////////////// 6 7 #if !defined(AFX_IOCPSERVER_H__75B80E90_FD25... 阅读全文
posted @ 2011-12-21 22:33 lovememo 阅读(1748) 评论(0) 推荐(1) 编辑