Socket overlapped i/o ..

G

Guest

Hi:

Is there a discussion group for System.Net issues? I would appreciate this
post getting redirected there if there is one:

I understand from all the theory that overlapped i/o is good. However, I
have not found any good resource for what it means to take advantage of it
from System.Net.Sockets.

I am writing an asynchronous tcp client using System.Nets.Sockets.

Do all I have to do to take advantage of the WinSock 2 level overlapped I/O
is set UseOnlyOverlappedIO to true on every instance of the socket class that
I create?

Thanks.
 
H

Henning Krause [MVP - Exchange]

Hello,

The sockets class by default will use overlapped IO AND IO Completion ports
(On Windows NT system at least).

If you specify UseOnlyOverlappedIO you will disable IO Completion Ports,
which will actually hurt performance.

Kind regards,
Henning Krause
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top