Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
333 views
in Technique[技术] by (71.8m points)

iocp - Is there a I/O completion port based component for Delphi?

I am aware of Indy, ICS, Synapse and Clever InetSuite, none of which support IOCP. Is there anything else out there?

Edit: I found iocpclasses , It's written in Delphi5. Better than nothing I suppose.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Indy 10 has experimental support for fibers and IOCP:

From Indy knowledge base:

Indy 10 provides experimental support for the Fiber and I/O Completion Ports API in the Windows platforms. This support is designed to aid in creating more scalable servers where thousands of simultaneous client connections are required. For small- and medium-sized projects, the traditional thread-based servers are still available.

Fiber and IOCP APIs are supported only for the Windows 2000, 2003, and XP operating systems using Delphi version 7. Windows 95, 98, and ME are not supported. Delphi compilers prior to version 7 are also unsupported due to critical changes in the VCL since those releases.

This is not installed by default, and I haven't used it myself, so I am not sure how much usable it is. I guess you need to download the latest SVN revision from their repository to use this experimental feature.

Using it must be straightforward; you create a IdTcpServer instance, and instead of the default scheduler, you use the scheduler class which provides IOCP support. The rest should be considered internal work of the provided scheduler class.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...