i am doing a server/client program with winsock2. once a client starts, it will connect to server and send some info. after server got these info,the connection will be closed,and the server will waiting for another client.
now i wanna make sure that, once the server-socket accept a connection,this connection won't last more than 10 seconds. if one connection lasts more than 10 seconds,then the server-socket should close the connection automatically. is there anyway to set that time limit? any suggestion would be greatly appreciated.......