Hello Frédéric, > It seems to work, but it would be interesting to understand why I > don't get any info at the socket side when I power off the printer for > example...
This is because the printer does just poweroff. "Disconnecting a TCP session" means that the disconnecting side will send a packet to the other end to say so. If the printer just powers off then the client program does not know it. That is wy you dont get a OnSessionClosed. Same happens if you reboot a machine with a running server on it, or pull out the network cable with a active TCP session. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz -- 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