public DiagramServer(int port) throws IOException {
  serverSocket=new ServerSocket(port);
  setName("DiagramServer");
  setDaemon(true);
  threadPool=new PriorityQueue<ServerThread>();
  for (int i=0; i < poolSize; i++) {
    ServerThread worker=new ServerThread();
    worker.start();
    threadPool.add(worker);
  }
  start();
}

public DiagramServer ( int port ) throws IOException { serverSocket = new ServerSocket ( port ) ; setName ( "DiagramServer" ) ; setDaemon ( true ) ; threadPool = new PriorityQueue < ServerThread > ( ) ; for ( int i = 0 ; i < poolSize ; i ++ ) { ServerThread worker = new ServerThread ( ) ; worker . start ( ) ; threadPool . add ( worker ) ; } start ( ) ; }
creates and starts a new diagramserver listening at the given port .
