public void send(String message) { try { _chatClient.sendMsg(message); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } }
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(); } }