03 2023 档案

UDP聊天实现
摘要:1 public class A { 2 public static void main(String[] args) throws IOException { 3 DatagramSocket socket = new DatagramSocket(8888); 4 BufferedReader 阅读全文

posted @ 2023-03-17 11:43 大风吹过12138 阅读(10) 评论(0) 推荐(0) 编辑

tcp实现聊天
摘要:客户端 1 public class A { 2 public static void main(String[] args) throws IOException { 3 String guo="你好啊"; 4 int port=8888; 5 Socket socket = null; 6 In 阅读全文

posted @ 2023-03-17 10:46 大风吹过12138 阅读(13) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示