am building a chat system and when a user is disconnected from there host
there id is stuck
within the socket so am wondering is there anyway of removing dead IDs
once
connection is lost to server?
In my opinion, the best way to handle this is to implement at the
application layer a kind of ping.
Your chat system surely use a kind of messaging between client and server.
Just implement one more command from server to client: every minute your
server send a "noop" command to the client which simply answers "OK". If the
client do'nt answer, then assume his connection is lost and cleanup your
system.
--
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be
--
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