@Synchronized("stateLock") public boolean isConnected(){
  return socket != null && !socket.isClosed();
}

@ Synchronized ( "stateLock" ) public boolean isConnected ( ) { return socket != null && ! socket . isClosed ( ) ; }
returns whether or not the pircbotx is currently connected to a server . the result of this method should only act as a rough guide , as the result may not be valid by the time you act upon it .
