标签: java sockets serversocket
ServerSocket serverSocket = new ServerSocket(some_port); Socket socket = serverSocket.accept(); serverSocket.close();
socket也会被关闭吗?
socket
答案 0 :(得分:7)
没有。接受的Sockets完全独立于接受的ServerSocket。
Sockets
ServerSocket