|
1
2
3
4
5
6
7
8
9
|
package pad.prac2;
import java.util.Scanner;
public class JChat
{
public static void main(String[] args)
{
String ip;
|
|
10
|
int port, roomSize;
|
|
11
12
13
14
15
|
Scanner in = new Scanner(System.in);
System.out.print("IP: ");
ip = in.nextLine();
System.out.print("Port: ");
port = in.nextInt();
|
|
16
17
|
System.out.print("Size of chatroom: ");
roomSize = in.nextInt();
|
|
18
|
in.close();
|
|
19
20
|
Server serv = new Server(ip,port,roomSize);
serv.startServer();
|
|
21
|
}
|
|
22
23
24
25
26
27
|
/*
* TODO
*
* capture SIGINT
*
*/
|
|
28
|
}
|