SE_connection_test_server

Tests whether currently connected to ArcSDE server

Usage syntax

LONG SE_connection_test_server (SE_CONNECTION connection, time_t interval);

Parameters
connection The connection handle
interval Maximum seconds since last round trip to server
Description

The function SE_connection_test_server checks whether an open connection to an ArcSDE server is connected. If still connected, this function returns SE_SUCCESS. If disconnected, it returns SE_LOST_DBMS_CONNECTION.

If there have been any round trips to the server of any kind within the number of seconds specified with the interval parameter, this function immediately returns SE_SUCCESS. Otherwise, the function performs a query to the server to check the connection.

Returns
SE_SUCCESS
SE_INVALID_CONNECTION

SE_INVALID_POINTER

SE_INVALID_RELEASE

SE_LOST_DBMS_CONNECTION

SE_NET_FAILURE