12 2020 档案

摘要:TCP服务端 import java.net.Socket; public class TCPServer { public static void main(String[] args) { try { ServerSocket serverSocket = new ServerSocket(88 阅读全文
posted @ 2020-12-30 23:09 xl4ng 阅读(64) 评论(0) 推荐(0) 编辑
摘要:发送端 import java.io.IOException; import java.net.*; public class UDPSend { public static void main(String[] args) throws IOException { DatagramSocket d 阅读全文
posted @ 2020-12-24 22:34 xl4ng 阅读(71) 评论(0) 推荐(0) 编辑
摘要:EchoServer import java.io.*; import java.net.ServerSocket; import java.net.Socket; public class EchoServer { private int port = 8000; private ServerSo 阅读全文
posted @ 2020-12-12 20:04 xl4ng 阅读(59) 评论(0) 推荐(0) 编辑
摘要:import java.net.URLDecoder; import java.net.URLEncoder; public class CodeDemo { public static void main(String[] args) throws Exception { String keyWo 阅读全文
posted @ 2020-12-11 21:14 xl4ng 阅读(122) 评论(0) 推荐(0) 编辑
摘要:import org.apache.commons.io.IOUtils; import java.io.InputStream; import java.net.URL; import java.net.URLConnection; public class URLConnectionDemo { 阅读全文
posted @ 2020-12-11 21:01 xl4ng 阅读(126) 评论(0) 推荐(0) 编辑
摘要:import org.apache.commons.io.IOUtils; import java.io.InputStream; import java.net.URL; public class URLDemo { public static void main(String[] args) t 阅读全文
posted @ 2020-12-11 20:55 xl4ng 阅读(78) 评论(0) 推荐(0) 编辑
摘要:import java.io.IOException; import java.net.InetAddress; public class InetAddressDemo { public static void main(String[] args) throws IOException { In 阅读全文
posted @ 2020-12-11 20:27 xl4ng 阅读(110) 评论(0) 推荐(0) 编辑