Package server

Source Code of server.Server

package server;

import general.helperclasses.logger.Logger;

import java.io.IOException;

import server.connection.ConnectionHandler;

public class Server extends Thread{

  private final int port;
  private final ConnectionHandler handler;
 
  public Server(int port) throws IOException
  {
    this.port = port;
    handler = new ConnectionHandler(port);
   
  }
 
  @Override
  public void run() {
    while(true)
    {
      Logger.printLast();
    }
  }
}
TOP

Related Classes of server.Server

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.