private boolean isConnected(){
  return (pclient == null ? false : pclient.isConnected());
}

private boolean isConnected ( ) { return ( pclient == null ? false : pclient . isConnected ( ) ) ; }
check if we are currently connected
