Package com.mdraco.chat

Examples of com.mdraco.chat.Server


    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")) {
View Full Code Here

TOP

Related Classes of com.mdraco.chat.Server

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.