public JRakLibClient(Logger logger,String serverIP,int serverPort){
  if (serverPort < 1 || serverPort > 65536) {
    throw new IllegalArgumentException("Invalid port range.");
  }
  this.logger=logger;
  this.serverEndpoint=new InetSocketAddress(serverIP,serverPort);
  externalQueue=new LinkedList<>();
  internalQueue=new LinkedList<>();
  start();
}

public JRakLibClient ( Logger logger , String serverIP , int serverPort ) { if ( serverPort < 1 || serverPort > 65536 ) { throw new IllegalArgumentException ( "Invalid port range." ) ; } this . logger = logger ; this . serverEndpoint = new InetSocketAddress ( serverIP , serverPort ) ; externalQueue = new LinkedList < > ( ) ; internalQueue = new LinkedList < > ( ) ; start ( ) ; }
creates a new jraklibclient and connects right away .
