TestScktIocp
代码说明:
与ScktComp兼容的IOCP服务端组件 参考了IOCPComp组件和ScktComp组件,可以直接替换ScktComp的TServerSocket 其中的事件方法大致相同,同于本身的IOCP特性,不再提供原TServerSocket的线程阻塞选项.核心文件(ScktIocp.pas) 测试时先导入注册表文件,修改连接数,在XP下测试可连接3万个连接. 用FastMM4测试,没有发现内存泄漏,应用大规模服务还有待测试. 如发现有错误之处请更正后通知本人.(ScktComp compatible with the IOCP server components IOCPComp reference ScktComp components and components, can directly replace the ScktComp events which TServerSocket methodology is generally the same, with the IOCP on its properties, no longer blocking the original thread TServerSocket options . the core document (ScktIocp.pas) test registry file to import, modify connections in XP to connect to test the 30,000 connections. FastMM4 test used, no memory leaks, application of large-scale services have yet to be tested. If there is error, please notify me corrected.)
文件列表:
TestScktIocp
............\BorlndMM.dll
............\IOCP
............\....\IOCPComp.dcu
............\....\IOCPComp.pas
............\....\ScktIocp.dcu
............\....\ScktIocp.pas
............\....\UHashTables.dcu
............\....\UHashTables.pas
............\....\WinSock2.dcu
............\....\WinSock2.pas
............\....\ws2tcpip.inc
............\....\wsipx.inc
............\....\wsnetbs.inc
............\....\wsnwlink.inc
............\KeepAliveTime.reg
............\MaxUserPort.reg
............\Project1.exe
............\ProjectGroup1.bdsgroup
............\TestClient.bdsproj
............\TestClient.dpr
............\TestClient.exe
............\TestClient.identcache
............\TestClient.res
............\TestServer.bdsproj
............\TestServer.cfg
............\TestServer.dpr
............\TestServer.exe
............\TestServer.identcache
............\TestServer.res
............\uClient.dcu
............\uClient.dfm
............\uClient.pas
............\uServer.dcu
............\uServer.dfm
............\uServer.pas
............\说明.txt
下载说明:请别用迅雷下载,失败请重下,重下不扣分!