Socket入门 最简单的Server端读取Client端内容的demo public class Server { public static void main(String [] args) throws Exception{ ServerSocket ss = new ServerSocket(9000); Socket s = ss.accept(); InputStream input = s.getInputStream(); byte[] bytes = new byte[102…
Socket入门 最简单的Server端读取Client端内容的demo public class Server { public static void main(String [] args) throws Exception{ ServerSocket ss = new ServerSocket(9000); Socket s = ss.accept(); InputStream input = s.getInputStream(); byte[] bytes = new byte[102…