informix
Informix DataBlade API Programmer's Manual
DataBlade API Function Descriptions

mi_close()

The mi_close() function closes a connection.

Syntax

Usage

The mi_close() function frees the connection descriptor that conn references. This function is the destructor function for a connection descriptor. After mi_close() is called, conn is no longer a valid open connection and all information associated with it becomes invalid. This information includes:

It also deallocates the connection descriptor itself.

After a connection closes, any open LO file descriptors remain valid for the duration of the client session.

Return Values

MI_OK indicates that the function was successful.
MI_ERROR indicates that the function was not successful.

Related Topics

See the descriptions of the following functions: mi_open() and mi_server_connect().

For more information, see Closing a Connection.


Informix DataBlade API Programmer's Manual, Version 9.2
Copyright © 1999, Informix Software, Inc. All rights reserved