Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualXanather

Posted 07 August 2012 - 08:07 AM

You could do what Apoch has mentioned, but you could also use the "heart beat" messages to display current latency towards the server.

If you are using TCP just attempt to read/write from the network, if a IO error returns/exception is thrown then you can safely assume the connection has closed. UDP wont work like that though as it is connectionless...

#1Xanather

Posted 07 August 2012 - 07:57 AM

You could do what Apoch has mentioned, but you could also use the "heart beat" messages to display current latency towards the server.

If you are using TCP just attempt to read/write from the network, if a IO error returns/exception is thrown then you can safely assume the connection has closed. UDP wont work will that though as it is connectionless...

PARTNERS