client/src/main/java/com/orientechnologies/orient/client/binary/OChannelBinaryAsynchClient.java
public boolean isConnected() {
    final Socket s = socket;
    return s != null && !s.isClosed() && s.isConnected() && !s.isInputShutdown() && !s.isOutputShutdown();
  }
public boolean isConnected() {
    final Socket s = socket;
    return s != null && !s.isClosed() && s.isConnected() && !s.isInputShutdown() && !s.isOutputShutdown();
  }
Tells if the channel is connected.

@return true if it's connected, otherwise false.