BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
if (args.length > 0 && args[0].equalsIgnoreCase("s")) {
System.out.println("server mode started");
try {
Server s = new Server(port);
String text = reader.readLine();
while (!text.equalsIgnoreCase("q") && !text.equalsIgnoreCase("quit")) {
text = reader.readLine();
}
s.Close();
} catch (IOException e) {
e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
}
}
else if (args.length > 0 && args[0].equalsIgnoreCase("c")) {