[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Detecting remote disconnects
[Thread Prev] | [Thread Next]
- Subject: Detecting remote disconnects
- From: Peter von Konigsmark <peter@xxxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Tue, 16 Oct 2012 14:46:57 +1100
- To: libssh@xxxxxxxxxx
Hi all,I've got an app that launches executables on a remote machine using ssh_channel_request_exec(). How can I detect when the remote end is no longer available due to the cable being unplugged etc? When the cable is removed:
ssh_channel_is_eof() returns 0 ssh_is_connected() returns 1 ssh_get_status() returns 0 signalling everything is OK.I can detect when the remote end is rebooted (nicely), but not when it becomes otherwise unreachable. I'm using libssh 0.5.2.
Thanks, Peter
Archive administrator: postmaster@lists.cynapses.org