Exit providers can supply an MQ_INIT_EXIT function to perform connection-level termination.
|
The MQ_TERM_EXIT call has the following parameters.
Exit parameter structure.
Exit context structure.
Completion code.
Reason code qualifying pCompCode.
If functions belonging to the exit suite acquire resources during the connection, an MQ_TERM_EXIT function is a convenient point at which to free those resources, for example, freeing storage obtained dynamically.
MQ_TERM_EXIT (&ExitParms, &ExitContext, &CompCode, &Reason);
The parameters passed to the exit are declared as follows:
PMQAXP pExitParms; /* Exit parameter structure */ PMQAXC pExitContext; /* Exit context structure */ PMQLONG pCompCode; /* Completion code */ PMQLONG pReason; /* Reason code qualifying CompCode */