Check whether the remote is connected
Check whether the remote's underlying transport is connected to the remote host.
the remote
1 if it's connected, 0 otherwise.