INFORMIX
DataBlade API Programmer's Manual
Chapter 12: DataBlade API Function Descriptions
Home Contents Index Master Index New Book

mi_set_default_connection_info()

The mi_set_default_connection_info() function sets the default connection parameters for an application when those defaults differ from the values in the system parameters.

Syntax

Usage

The application should define an MI_CONNECTION_INFO structure and assign default values to its server_name, server_host, and server_port fields.

For a description of the MI_CONNECTION_INFO structure, see the description of the mi_get_connection_info() function. For additional information about this and other data structures, see "Information Descriptors".

If mi_set_default_connection_info() is used as a server function, it does nothing.

Return Values

MI_OK

The function was successful.

MI_ERROR

The function was not successful when it attempted to set the database server name. If the application has not set a callback to handle the MI_LIB_BADSERV error, it should check the return status of mi_set_default_connection_info().

Related Topics

For additional information, see the descriptions of the following functions: mi_get_connection_info(), mi_get_default_connection_info(), and mi_sysname().




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