Example #1
0
 public void send(String message) {
   try {
     _chatClient.sendMsg(message);
   } catch (IOException e) {
     // TODO Auto-generated catch block
     e.printStackTrace();
   }
 }
Example #2
0
  public void connect(InetAddress serverAddress, int serverPort, String username) {

    try {
      _chatClient.connect(serverAddress, serverPort, username);
    } catch (UnknownHostException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    } catch (IOException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
  }