摘要:
TCPServer.java文件中:import java.net.*;import java.io.*;public class TCPServer{public static void main(String args[]){InputStream in=null; OutputStream out=null;//定义输入流、输出流try{ServerSocket ss=new ServerSocket(5888);//初始化服务端Socket socket=ss.accept(); //服务端和客户端相连in=socket.getInputStream();out=socket.getO 阅读全文