Commit dc242cfe9b5f71a242d186eca8c12429c3cfc321
1 parent
ce187568
git-svn-id: svn://imanolbarba.net/PAD@56 c2ee353e-ed0d-4329-bf56-03aec153487f
Showing
4 changed files
with
3 additions
and
8 deletions
JChatServerV2/bin/pad/prac2/JChat$1.class
No preview for this file type
JChatServerV2/bin/pad/prac2/JChat.class
No preview for this file type
JChatServerV2/src/pad/prac2/JChat.java
... | ... | @@ -8,19 +8,14 @@ public class JChat |
8 | 8 | { |
9 | 9 | String ip; |
10 | 10 | int port, roomSize; |
11 | - /*Scanner in = new Scanner(System.in); | |
11 | + Scanner in = new Scanner(System.in); | |
12 | 12 | System.out.print("IP: "); |
13 | 13 | ip = in.nextLine(); |
14 | 14 | System.out.print("Port: "); |
15 | 15 | port = in.nextInt(); |
16 | 16 | System.out.print("Size of chatroom: "); |
17 | 17 | roomSize = in.nextInt(); |
18 | - in.close();*/ | |
19 | - | |
20 | - ip = "desktop"; | |
21 | - port = 3001; | |
22 | - roomSize = 5; | |
23 | - | |
18 | + in.close(); | |
24 | 19 | final Server serv = new Server(ip,port,roomSize); |
25 | 20 | Runtime.getRuntime().addShutdownHook(new Thread() |
26 | 21 | { | ... | ... |
QChatClient/QChatClient.pro.user