|
|
@@ -3,9 +3,17 @@ package xyz.nextn; |
|
|
|
public class Main { |
|
|
|
|
|
|
|
public static void main(String[] args) { |
|
|
|
Server server = new Server(1111); |
|
|
|
new Thread((Runnable) server).start(); |
|
|
|
System.out.println("i kau nixx!!"); |
|
|
|
try { |
|
|
|
Thread.sleep(20 * 1000); |
|
|
|
} catch (InterruptedException e) { |
|
|
|
e.printStackTrace(); |
|
|
|
} |
|
|
|
System.out.println("Stopping Server"); |
|
|
|
server.stop(); |
|
|
|
|
|
|
|
Server server = new Server(); |
|
|
|
server.start(1111); |
|
|
|
|
|
|
|
} |
|
|
|
} |