import java.net.*; import java.io.*; public class Client{ private Socket clientEndPoint; private InputStream in; private OutputStream out; public void connectToService()throws IOException,InterruptedException{ clientEndPoint = new Socket("192.168.4.60",516); in = clientEndPoint.getInputStream(); ...
1importjava.io.IOException;2importjava.net.ServerSocket;3importjava.net.Socket;4importjava.util.ArrayList;5importjava.util.List;67publicclassFileimplementsRunnable{89publicstaticArrayList<Socket> socketList_IO =newArrayList<>();10ServerSocket ssocket;11Socket socket;1213publicvoidrun() {14//文件传输开...