package GPServer; /** *
Title:
*Description:
*Copyright: Copyright (c) 2000
*Company:
* @author not attributable * @version 1.0 */ import java.lang.*; import java.io.*; import java.net.*; public class GameServer { private ServerSocket ss; private Socket s; public GameServer(int port) { try{ listen(port); } catch(IOException e){ e.printStackTrace(); } } public static void main(String[] args) { int port = Integer.parseInt(args[0]); GameServer gameServer1 = new GameServer(port); } private void listen(int port) throws IOException{ ss = new ServerSocket(port); while(true){ s = ss.accept(); new GameThread(s); } } }