li_浩

2020年3月29日

UDP发送方接收方模拟的Java程序

摘要: public class UDPReceiveDemo { public static void main(String[] args) throws IOException { //创建UDP接收端套接字对象 DatagramSocket ds = new DatagramSocket(10086 阅读全文

posted @ 2020-03-29 10:34 li_浩 阅读(195) 评论(0) 推荐(0) 编辑
TCP客户端服务器端简单模拟Java编程

摘要: public class TCPrecevierDemo { public static void main(String[] args) throws IOException { //创建服务器端套接字对象 ServerSocket ss = new ServerSocket(10045); // 阅读全文

posted @ 2020-03-29 10:31 li_浩 阅读(383) 评论(0) 推荐(0) 编辑