Solved

I/O Compleiton Ports

Posted on 2003-11-19
3
189 Views
Last Modified: 2010-04-01
Can anybody tell me how these are used? Pretty confused about them.

Some sample code would be great.
Thanks in advance.....
0
Comment
Question by:sArunima
3 Comments
 
LVL 48

Accepted Solution

by:
AlexFM earned 125 total points
ID: 9785265
I learned IOCP by this sample:

http://www.codeproject.com/internet/winsockiocp.asp

Using IOCP means that you associate some I/O operations (file, socket...) with completion port. Now any I/O operation (ReadFile, send, recv...) returns immidiately, and program waits for it's actual completion on completion port. All IOCP sample are complicated, but you need to spend your time and understand one of them.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question