Package com.mdraco.chat

Examples of com.mdraco.chat.ConsoleClient


      }
    }
    else if (args.length > 0 && args[0].equalsIgnoreCase("c")) {
      System.out.println("client mode started");
      try {
        BaseClient c = new ConsoleClient("localhost", port);

        String text = reader.readLine();
        while (!text.equalsIgnoreCase("q") && !text.equalsIgnoreCase("quit")) {
          c.Send(text);
          text = reader.readLine();
        }
        c.Close();
      } catch (IOException e) {
        e.printStackTrace()//To change body of catch statement use File | Settings | File Templates.
      }
    }
    else {
View Full Code Here

TOP

Related Classes of com.mdraco.chat.ConsoleClient

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.