sokitome
July 19th, 2001, 01:38 AM
I have a client side program when after logging in it opens a winsock connection to a serverside program letting it know it's online. the problem is if the client side computer crashes and has to be rebooted before the log off procedure ends the session then i get an error and the client side program cannot connect again unless the server side program is restarted. Please help
Cakkie
July 19th, 2001, 01:45 AM
You should always check to see if a client is alive at periodically moments (like every minute, or every 5 minutes). Just let the server send a bogus command (like PING or so), and have the client reply. If the client doesn't reply withing a time given (like 1 minute), start the logoff procedure for that client.
Tom Cannaerts
slisse@planetinternet.be
Programming today is a race between software engineers striving to build bigger and better idot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook