//客户端
Socket socket = new Socket(InetAddress.getLocalHost(), 9999);
System.out.println(socket);
//输出Socket[addr=localhost/127.0.0.1,port=9999,localport=60635]
//服务端
ServerSocket serverSocket = new ServerSocket(9999);
Socket socket = serverSocket.accept();
System.out.println(socket);
//输出Socket[addr=/127.0.0.1,port=60635,localport=9999]
请问这两个socket算是一样的吗?socket是两根绳子连接,还是通过一个绳子连接两边的端口