Package cs.csc.App

Source Code of cs.csc.App.App

package cs.csc.App;

import cs.csc.network.Server.Server;

public class App 
{
  public static boolean flaggy = true;
  public static Thread s;
  public static void main(String[] args)
  {
    int port = Integer.parseInt(args[0]);
    try
    {
      s = new Thread(new Server(port));
      s.start();
      System.out.println("Press any key to exit.");
      System.in.read();
    }
    catch (Exception e)
    {
      System.out.println(e);
    }
    System.out.println("User Signaled Server Termination!");
    flaggy = false;
    s.interrupt();
  }
}
TOP

Related Classes of cs.csc.App.App

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.