From 9db8b86d6a6908695883a619037c316ee187d3c2 Mon Sep 17 00:00:00 2001 From: Imanol-Mikel Barba Sabariego Date: Mon, 6 Jan 2014 23:20:44 +0000 Subject: [PATCH] git-svn-id: svn://imanolbarba.net/PAD@46 c2ee353e-ed0d-4329-bf56-03aec153487f --- JChatServerV2/bin/pad/prac2/JChat$1.class | Bin 774 -> 0 bytes JChatServerV2/bin/pad/prac2/JChat.class | Bin 866 -> 0 bytes JChatServerV2/src/pad/prac2/JChat.java | 9 ++------- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/JChatServerV2/bin/pad/prac2/JChat$1.class b/JChatServerV2/bin/pad/prac2/JChat$1.class index d203d50..e8fef6f 100644 Binary files a/JChatServerV2/bin/pad/prac2/JChat$1.class and b/JChatServerV2/bin/pad/prac2/JChat$1.class differ diff --git a/JChatServerV2/bin/pad/prac2/JChat.class b/JChatServerV2/bin/pad/prac2/JChat.class index 3f22a28..5c8923a 100644 Binary files a/JChatServerV2/bin/pad/prac2/JChat.class and b/JChatServerV2/bin/pad/prac2/JChat.class differ diff --git a/JChatServerV2/src/pad/prac2/JChat.java b/JChatServerV2/src/pad/prac2/JChat.java index 02d7663..a906273 100644 --- a/JChatServerV2/src/pad/prac2/JChat.java +++ b/JChatServerV2/src/pad/prac2/JChat.java @@ -8,19 +8,14 @@ public class JChat { String ip; int port, roomSize; - /*Scanner in = new Scanner(System.in); + Scanner in = new Scanner(System.in); System.out.print("IP: "); ip = in.nextLine(); System.out.print("Port: "); port = in.nextInt(); System.out.print("Size of chatroom: "); roomSize = in.nextInt(); - in.close();*/ - - ip = "localhost"; - port = 3001; - roomSize = 5; - + in.close(); final Server serv = new Server(ip,port,roomSize); Runtime.getRuntime().addShutdownHook(new Thread() { -- libgit2 0.22.2