S
SRLoka
After reading the newsgroups and various .Net web sites, I have come to a
conclusion that BeginReceive and BeginSend are the way to go as they use
IOCompletion Ports(I have no clue what they mean but most C++ programmers
seem to prefer them, based on my readings). I have decided to use this
sample from MSDN as a starting point to build my TCP server.
http://msdn.microsoft.com/library/d...e/html/cpconUsingNon-BlockingServerSocket.asp
The server would eventually communicate with around 1500 to 2500 clients.
These clients try to keep the connection open as long as possible(they are
third party - over GPRS - and I have no control of it). So in theory I could
have all the clients connected at same time. Is the above suggested approach
good for this type of situation ? The server will parse the incoming data in
the readCallback function and perform database read/writes based on that and
send back data to the client.
Thanks in advance for any info
Srinivas
conclusion that BeginReceive and BeginSend are the way to go as they use
IOCompletion Ports(I have no clue what they mean but most C++ programmers
seem to prefer them, based on my readings). I have decided to use this
sample from MSDN as a starting point to build my TCP server.
http://msdn.microsoft.com/library/d...e/html/cpconUsingNon-BlockingServerSocket.asp
The server would eventually communicate with around 1500 to 2500 clients.
These clients try to keep the connection open as long as possible(they are
third party - over GPRS - and I have no control of it). So in theory I could
have all the clients connected at same time. Is the above suggested approach
good for this type of situation ? The server will parse the incoming data in
the readCallback function and perform database read/writes based on that and
send back data to the client.
Thanks in advance for any info
Srinivas