C
Crirus
Can anyone advice me what is the best way to write a web server with
sockets?
As I have one now, inspired by MSDN... a socket listen for connection and
create new thread for each request passing a handler socket to a callback
function.
Now, what if I have 1000 request at the same time?
How many threads will be created?
How about if a request need few seconds to get reply from server?
Can someone expose to me various scenarious and the best way to handle them?
How Listen parameter work? If I specify mySock.Listen(10) does that mean 11
connection is refused..or what?
sockets?
As I have one now, inspired by MSDN... a socket listen for connection and
create new thread for each request passing a handler socket to a callback
function.
Now, what if I have 1000 request at the same time?
How many threads will be created?
How about if a request need few seconds to get reply from server?
Can someone expose to me various scenarious and the best way to handle them?
How Listen parameter work? If I specify mySock.Listen(10) does that mean 11
connection is refused..or what?