▍1. 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.)