|Subject:||Re: Event when data arrived or server has disconnected|
|Posted by:||glup (firstname.lastname@example.org)|
|Date:||Mon, 1 Sep 2003|
> The server could have a connection timeout activated, on which he
> disconnects when the connection was idle a certain amount of time. I want
> visualize the connection state (connected/disconnected). If I use the
> OnDisconnect event, it is not fired when the server is disconnecting, but
> when I try to send a new command. That's NOT usefull.
I tried just this example and found, that OnDisconnect is NOT called.
Instead I get a Exception, that the connection is closed. Do I have to
surround all SendCmd with a try/except and call on exception my handler
Event when data arrived or server has disconnected posted by glup on Mon, 1 Sep 2003