Commit dc242cfe9b5f71a242d186eca8c12429c3cfc321

Authored by Imanol-Mikel Barba Sabariego
1 parent ce187568

git-svn-id: svn://imanolbarba.net/PAD@56 c2ee353e-ed0d-4329-bf56-03aec153487f

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,19 +8,14 @@ public class JChat
8 { 8 {
9 String ip; 9 String ip;
10 int port, roomSize; 10 int port, roomSize;
11 - /*Scanner in = new Scanner(System.in); 11 + Scanner in = new Scanner(System.in);
12 System.out.print("IP: "); 12 System.out.print("IP: ");
13 ip = in.nextLine(); 13 ip = in.nextLine();
14 System.out.print("Port: "); 14 System.out.print("Port: ");
15 port = in.nextInt(); 15 port = in.nextInt();
16 System.out.print("Size of chatroom: "); 16 System.out.print("Size of chatroom: ");
17 roomSize = in.nextInt(); 17 roomSize = in.nextInt();
18 - in.close();*/  
19 -  
20 - ip = "desktop";  
21 - port = 3001;  
22 - roomSize = 5;  
23 - 18 + in.close();
24 final Server serv = new Server(ip,port,roomSize); 19 final Server serv = new Server(ip,port,roomSize);
25 Runtime.getRuntime().addShutdownHook(new Thread() 20 Runtime.getRuntime().addShutdownHook(new Thread()
26 { 21 {
QChatClient/QChatClient.pro.user
1 <?xml version="1.0" encoding="UTF-8"?> 1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE QtCreatorProject> 2 <!DOCTYPE QtCreatorProject>
3 -<!-- Written by QtCreator 2.7.1, 2014-01-07T07:37:08. --> 3 +<!-- Written by QtCreator 2.7.1, 2014-01-07T07:44:29. -->
4 <qtcreator> 4 <qtcreator>
5 <data> 5 <data>
6 <variable>ProjectExplorer.Project.ActiveTarget</variable> 6 <variable>ProjectExplorer.Project.ActiveTarget</variable>