> What is the best way to use in order to be able to keep alive both 
> server and client?

Only the client matters, ignore the server.  Just design your protocol so
the client sends regular packets, at least one every five minutes, I sent
them each minute, with the server returning an acknowledgement packet (as
I've explained twice already) that the client checks.  

If the server does not receive packets for say three times the interval,
it forcibly closes the connection.  If the client does not get a response,
it retries, then closes the connection and retries.   

Angus

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to