网络编程聊天室------客户端
/**
* 客户端类
* @author Administrator
*
*/
public class ClientDome {
//客户端类
public static void main(String[] args) {
try {
/**
* 1:创建客户端的套接字对象,连接到指定IP地址和端口号的服务器
*/
Socket client = new Socket("192.168.13.118",8888);
new ClientRecive(client).start();
new ClientSendDome(client).start();
} catch (UnknownHostException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}