socket disconnection notification method
问题 just searched for a posibble solution to indetify when the client disconnecets. i found this: public bool IsConnected( Socket s) { try { return !(s.Poll(1, SelectMode.SelectRead) &&s.Available == 0); } catch (SocketException) { return false; } } im using a while loop in my main with thread.sleep(500) and running the Isconnectedmthod it works allright when i run it through the visual studio and when i click stop debugging it actually notify me in the server side program but when i just go to