Sockets

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How it is possible to control over 1000 live client socket ?
which almost always active ?
does a thread for each socket is the answer?
 
ShimiIL,

A thread for each is definitely not the answer. For something like
this, you want to use I/O completion ports. Basically, with this, you give
a callback to the sockets, and process it in chunks asynchronously. This is
exposed in .NET through the Begin*/End* asynchronous methods. The
implementation uses I/O completion ports to perform operations
asychronously.

Hope this helps.
 
Hi ,
windows handles how many alive socket you can use . i dont know default
number .
 
Back
Top