Creating timeouts for winsock connections
Posted on 2002-04-04
I made a server application that accepts multiple connections and a client app for it. I would like to add a timeout for when the client connects to the server. If the client does not send the information in a certain amount of time, the server will close just that connection
Client connects to the server
Server requests a special code to authorize connection
Client responds with the code in the alloted amount of time and connection is authorized
If the client does not respond and it has been about 5 seconds, the server should close the connection immediately.
How would I do this? Thanks