Best way to handle disconnects
Posted: Mon 25 Mar 2013 01:26
I want to handle network disconnects from a central location. I tried the OnConnectionLost event, but it does not get fired when I pull the cable from my router, but BeforeDisconnect does.
I see a TRetryMode in OnConnectionLost, but don't see it in help. What are the possible values?
I also see TConnLostCause, what's that for?
I'd like a list of events and corresponding actions I need to take to allow my app to keep running once a connection is lost and then the user clicks a Dialog to indicate he wants to retry.
I see a TRetryMode in OnConnectionLost, but don't see it in help. What are the possible values?
I also see TConnLostCause, what's that for?
I'd like a list of events and corresponding actions I need to take to allow my app to keep running once a connection is lost and then the user clicks a Dialog to indicate he wants to retry.