摘要:
/** * 客户端线程接收类 * @author * */public class ClientRecive extends Thread{ public Socket socket; public ClientRecive(Socket socket) { super(); this.socket 阅读全文
posted @ 2017-06-29 10:56
云端观云
阅读(212)
评论(0)
推荐(0)
摘要:
/** * 客户端发送请求线程 * @author Administrator * */public class ClientSendDome extends Thread{ public Socket client; public ClientSendDome(Socket client) { s 阅读全文
posted @ 2017-06-29 10:10
云端观云
阅读(206)
评论(0)
推荐(0)
摘要:
/** * 客户端类 * @author Administrator * */public class ClientDome { //客户端类 public static void main(String[] args) { try { /** * 1:创建客户端的套接字对象,连接到指定IP地址和端 阅读全文
posted @ 2017-06-29 10:09
云端观云
阅读(240)
评论(0)
推荐(0)
摘要:
/** * 服务器聊天类 * @author Administrator */public class ServerThread extends Thread { //List集合用于保存每一个连接本服务器的客户端Socket对象 public static List<Socket>list = n 阅读全文
posted @ 2017-06-29 10:08
云端观云
阅读(187)
评论(0)
推荐(0)
摘要:
服务器类 /** * 服务器 * @author Administrator * */public class Server { public static void main(String[] args) { try { ServerSocket server = new ServerSocket 阅读全文
posted @ 2017-06-29 10:06
云端观云
阅读(179)
评论(0)
推荐(0)
摘要:
《Servlet类的Java》 @WebServlet("/studentServlet") public class StudentServlet extends HttpServlet { private static final long serialVersionUID = 1L; /** 阅读全文
posted @ 2017-06-29 09:51
云端观云
阅读(251)
评论(0)
推荐(0)