Java – can I close and reopen the socket?
•
Java
I learned an example of socket use In this example, the client sends a request to the server to open the socket, and then the server (listening for a specific port) opens the socket and everything is normal, and the socket is "opened" from both sides (client and server)@ H_ 301_ 2@ but I still don't know how flexible these things are For example, whether the client can close an open socket (from both ends) and reopen it again (while the server keeps the socket open)
Solution
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码