timer in socket programming
Hello ,
I have a server listening on incoming client connections. Once the client establishes SSL connection with the server , the server waits on read() from the client. Only Client can disconnect the connection. I want to have a timer in the server program to wait for x secs after read() and then disconnect the Client connection.
Any pointers which timer library to use or how to achieve this,
Thanks,
|