Keep alive socket option is sometimes a solution. Frequently not. You can send data to your device just to periodically check if it is still alive.
Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] Author of ICS (Internet Component Suite, freeware) Author of MidWare (Multi-tier framework, freeware) http://www.overbyte.be ----- Original Message ----- From: "Frédéric SCHENCKEL" <[EMAIL PROTECTED]> To: "ICS support mailing" <twsocket@elists.org> Sent: Wednesday, August 16, 2006 9:22 PM Subject: [twsocket] Disconnect detection > > Hello, > > > I have a TWSocket who connects to a printer. > > What's the best way to detect a broken connection. > > TWSocket is only waiting for data from the printer (special printer...) therefore I do a TWSocket.connect. > > When the printer is Offline (power off for example) after the connection is establisched, I cannot detect that the connection is broken. > > What's the best way to detect this ? > > Note : the kind of socket component doesn't really mather at this time. Just for info, linemode is on... > > Thanks > > Best regards > > > > > > Frédéric SCHENCKEL > > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * > cab technologies > za Nord du val de Moder > 67350 Niedermodern > Tél: + 33 3 88 72 25 01 / Fax: +33 3 88 72 25 02 > Notre site en Français: www.cab-technologies.fr > Adresse support: [EMAIL PROTECTED] > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * > -- > To unsubscribe or change your settings for TWSocket mailing list > please goto http://www.elists.org/mailman/listinfo/twsocket > Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be