I have used closed socket to close but I am unable to close a socket as my sever is not responding. I can reset the sever only when I close my program. Is there any way to reset the connection by being in the program and when my server is not responding?