Hello, good afternoon everyone!
I have a problem with the company software. I created a serverSocket when starting the application, and with this I can control so that only one application opens on the same machine. However, when I close the system, I need to give a .close to the created serverSocket so that access to the system is enabled.
I can not in any way create a method that is called in the act of closing the system. In addition to controlling the socket, there are numerous needs that could be implemented at the close of the application. So I really need your collaboration. Thank you.