If you're actually using them for I/O, then that's supported intrinsically by the BeginRead/Write methods on the various Stream class derivatives. I have a sample here[2] that demonstrates this against NetworkStreams bound to sockets.
If you're using them for non I/O reasons, then you need to resort to p/invoke. -Mike DevelopMentor http://staff.develop.com/woodring [1] http://staff.develop.com/woodring/dotnet/#socketsamp > -----Original Message----- > From: Moderated discussion of advanced .NET topics. > [mailto:[EMAIL PROTECTED]] On Behalf Of Fiach Reid > Sent: Monday, February 10, 2003 7:14 AM > To: [EMAIL PROTECTED] > Subject: [ADVANCED-DOTNET] IO completion ports > > > Hi > > Does anybody have an example of using I/O completion ports > in c#?. I'm > not to hot on using unmanaged API's to do it, as I'm quite sure it's > implemented somwhere around the ThreadPool class. > > Thanks in advance. > > Fiach > www.webtropy.com
