摘要: 1 import java.io.PrintStream; 2 import java.net.Socket; 3 import java.net.ServerSocket; 4 import java.util.Scanner; 5 6 public class Server 7 { 8 publ 阅读全文
posted @ 2017-08-26 21:49 lanshanxiao 阅读(2548) 评论(0) 推荐(0) 编辑
摘要: Java的基本网络支持: 使用InetAddress: 1 import java.net.InetAddress; 2 3 public class InetAddressTest{ 4 public static void main(String[] args) throws Exception 阅读全文
posted @ 2017-08-26 10:43 lanshanxiao 阅读(362) 评论(0) 推荐(0) 编辑