OpenAPI User Guide > OpenAPI User Guide > OpenAPI Function Reference > OpenAPI Functions > IIapi_disconnect() Function--Close a Server Connection
Was this helpful?
IIapi_disconnect() Function--Close a Server Connection
The IIapi_disconnect() function closes the connection to the server opened with IIapi_connect() and frees all resources associated with the connection handle.
An application must close all outstanding statements and event retrievals, and it must commit or roll back all outstanding transactions before calling IIapi_disconnect().
This function has the following syntax:
II_VOID IIapi_disconnect (IIAPI_DISCONNPARM *disconnParm);
typedef struct _IIAPI_DISCONNPARM
{
      IIAPI_GENPARM     dc_genParm;
      II_PTR            dc_connHandle;
} IIAPI_DISCONNPARM;
This function has the following parameters:
cd_genParm
Type: input and delayed output
Specifies the generic parameters. For a description, see Generic Parameters).
dc_connHandle
Type: input
Specifies the connection handle, identifying the connection to the target server. All resources associated with this connection are also freed.
Last modified date: 08/28/2024