2023年3月17日

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 阅读(15) 评论(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 阅读(20) 评论(0) 推荐(0)

导航