class Connection {

  public boolean isConnected() {
    return socket != null && socket.isBound() && !socket.isClosed() && socket.isConnected()
        && !socket.isInputShutdown() && !socket.isOutputShutdown();
  }

  public  Connection();
  public  Connection(final String host);
  public  Connection(final String host, final int port);
  public  Connection(final String host, final int port, final int timeout, final int socketTimeout);

}