摘要: 1.服务端代码: public class Server { public static void main(String[] args) { try { System.out.println(" 服务端启动 "); //1.定义一个ServerSocket对象进行服务端的端口注册 ServerSo 阅读全文
posted @ 2022-08-04 22:28 努力的达子 阅读(46) 评论(0) 推荐(0) 编辑
摘要: 1.如何实现客户端多次发消息,服务端多次接收的情况呢 1.服务端 /** * 目标:客户端发送消息,服务端接收消息 */ public class Server { public static void main(String[] args) { try { System.out.println(" 阅读全文
posted @ 2022-08-04 21:15 努力的达子 阅读(40) 评论(0) 推荐(0) 编辑