All servers are server and servers written in Java using socket classes I
I I want to be able to detect and handle disconnects, and then want to reconnect a new customer if necessary.
To detect client disconnection, close the socket, and then accept new customers?
Probably, you are reading from the socket, perhaps using the wrapper on the input stream, such as That buffer reader in this case, you can find the end-stream of related read operation-1 (for raw read () calls) or tap (readLine (calls)).
If some actions are executed on a closed socket, socket expenditure causes you to be properly disposed.
Comments
Post a Comment