Hello!
How in Java to close a socket when a button is pressed? Made applications client server. It is necessary when you click on the button on the server to disable a specific client. I tried to use the flag. The problem is that in threads the application waits for text from the client, and after it accepts the text, it starts checking the flag and disconnects the socket ... And I need some interruption to do this ..
I still work, it does not work. Maybe today there is someone who knows how to do it ... Thank you.