SE_serverinfo_get_maxtimediff

Extracts MAXTIMEDIFF from the SE_SERVERINFO object.

Usage syntax

LONG SE_serverinfo_get_maxtimediff (const SE_SERVERINFO svrInfo, LONG *timediff);

Parameters
svrInfo The SE_SERVERINFO object
timediff MAXTIMEDIFF value
Description

This function extracts the MAXTIMEDIFF value from the SE_SERVERINFO object.

The MAXTIMEDIFF specifies, in seconds, the maximum time difference allowed between the system clocks of the server machine and a client machine. It prevents an unauthorized entry by someone who may have captured a network packet containing an ArcSDE connection string. When this person tries to resend the packet, it is rejected if the time that has elapsed between the capture and the resend is greater than the MAXTIMEDIFF setting.

Note: MAXTIMEDIFF does not restrict direct connections.
 

Returns

SE_SUCCESS
SE_INVALID_POINTER

SE_INVALID_SERVERINFO_OBJECT

SE_SDE_NOT_STARTED