|
The mi_close() function closes a connection.
| conn | is a pointer to the connection descriptor that a previous call to mi_open(), mi_server_connect(), or mi_server_reconnect() established. |
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.
| MI_OK | indicates that the function was successful. |
| MI_ERROR | indicates that the function was not successful. |
See the descriptions of the following functions: mi_open() and mi_server_connect().
For more information, see Closing a Connection.