Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread C/S connection status
Wed, Apr 9 2008 10:20 AMPermanent Link

Ulrich Doewich
What's the most efficient way to check whether or not the connection to
the server is still active?  Is there a property I can check, or a
function I can call to do this?

Right now I'm resorting to a GetRemoteDateTime call, wrapped in a
try..except construct that closes the session on the "Abort" exception
that an interrupted network connection causes...

Ulrich
Wed, Apr 9 2008 1:07 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Ulrich,

<< What's the most efficient way to check whether or not the connection to
the server is still active?  Is there a property I can check, or a function
I can call to do this? >>

The only way to check is to initiate an action with the ElevateDB Server.
If the connection was not active, or interrupted, then you can code an
TEDBSession.OnRemoteReconnect event handler to intercept the reconnect and
determine whether to reconnect or not.

Of course, one way to make sure that the connection is not interrupted is to
set the TEDBSession.RemotePing property to True.

--
Tim Young
Elevate Software
www.elevatesoft.com

Image