The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: 0x401000 on February 04, 2010, 09:05:30 AM

Title: I/O Concepts library
Post by: 0x401000 on February 04, 2010, 09:05:30 AM
Are there any library to work with I / O Completion Ports ? Looking at the assembly, but may have written in C + + ,thanks!
Title: Re: I/O Concepts library
Post by: Farabi on February 04, 2010, 01:37:44 PM
If you are talking about I/O hardware port, well you will not able to use it on XP or above, and you will need to make a driver.

For I/O port you only need in and out instruction
Title: Re: I/O Concepts library
Post by: redskull on February 04, 2010, 02:03:19 PM
I'm not sure what kind of functions you would want an IOCP library to provide.  Basically, you just create it with one call (CreateIoCompletionPort) and then have your threads wait on it with another (GetQueuedCompletionStatus).  The hard part is designing the rest of the code to be more general, so that any worker thread can handle reqeuests to or from any client (instead of one dedicated thread per client).

Also, @Farabi, IO completion ports != IO hardware ports.

-r