Advantage Client Engine
Controls the types of Advantage Database Servers to which the client application can connect.
UNSIGNED32 |
AdsSetServerType (UNSIGNED16 usServerType); |
usServerType (I) |
Bitmask of server types to allow client connections to. Options are ADS_REMOTE_SERVER, ADS_AIS_SERVER, and ADS_LOCAL_SERVER. The default is ADS_REMOTE_SERVER logically OR’d with ADS_AIS_SERVER. |
AdsSetServerType determines which types of Advantage servers the client application can use. The options available are ADS_REMOTE_SERVER. This option refers to the Advantage Database Server for NetWare, the Advantage Database Server for Windows NT/2000/2003, the Advantage Database Server for Windows 95/98/ME, or the Advantage Database Server for Linux. ADS_LOCAL_SERVER references the Advantage Local Server and ADS_AIS_SERVER designates the Advantage Internet Server. These options can be logically OR’d together to allow the client application to connect to any combination of server types. If multiple server types are specified, then the Advantage Client Engine uses the following precedence when attempting to connect: highest priority is given to ADS_REMOTE_SERVER, second priority to ADS_AIS_SERVER, and lowest priority to ADS_LOCAL_SERVER. For example, if the option to AdsSetServerType is ADS_REMOTE_SERVER OR’d with ADS_LOCAL_SERVER, all connections to Advantage servers will be true client/server connections. Advantage Local Server would only be used for connections to servers without the Advantage Database Server running due to the lower precedence of the local server. If ADS_REMOTE_SERVER and ADS_LOCAL_SERVER have both been selected, it may take two seconds to default to the Advantage Local Server if the Advantage Database Server is not running on the file server.
AdsSetServerType is a global setting that affects the behavior of the entire application.
None.