INFORMIX
DataBlade API Programmer's Manual
Chapter 5: Managing Sessions
Home Contents Index Master Index New Book

Information Descriptors

The MI_CONNECTION_INFO structure is the connection information descriptor. It is defined in milib.h. The server_name and server_port fields in this structure correspond to the Universal Server system parameters INFORMIXSERVER and SERVERNUM, and the locale field is the locale set by the system or en_us.8859-1 by default.

The MI_DATABASE_INFO structure is the database information descriptor. It is defined in milib.h. The fields in this structure correspond to the Universal Server system parameters MI_DATABASE, MI_USER, and MI_PASSWORD.

A third information structure, the MI_PARAMETER_INFO structure, is used to disable callbacks and checking of pointers during the session. It is defined in milib.h. The pointer_checks_enabled field in this structure corresponds to the MI_POINTER _CHECKS_ENABLED system parameter.

If the callbacks_enabled field is zero, callbacks are disabled; otherwise, they are enabled. For information about this callback, see "Callbacks". The default is 1, which means callbacks are enabled.

If the pointer_checks_enabled field is zero, pointers passed by the application to the database server, such as MI_ROW pointers, are not checked to ensure that they are within the heap space of the process. The default is 1, which means that pointers are checked.

The DataBlade API provides the following set of functions for accessing these information structures:

The DataBlade API provides the following functions to establish default parameters for an application that might differ from the settings in the system parameter file or the environment:

The DataBlade API also provides the following functions to get the default information values for the application:




DataBlade API Programmer's Manual, version 9.1
Copyright © 1998, Informix Software, Inc. All rights reserved.