public class ChatSocket { private ChatJFrame chatframe; private Socket client; public ChatSocket(String host,int port,String name) { try { client=new Socket(host,port); BufferedReader cin=new BufferedReader(new InputStreamReader(client.getInputStre