Exit providers can supply an MQ_CONNX_EXIT function to intercept the MQCONN and MQCONNX calls.
|
The MQ_CONNX_EXIT call has the following parameters.
Exit parameter structure.
Exit context structure.
Name of queue manager.
Options that control the action of MQCONNX .
Connection handle.
Completion code.
Reason code qualifying pCompCode.
Because the MQ_CONNX_EXIT interface is the same for MQCONN and MQCONNX , a single exit function can be used for both calls; the Function field in the MQAXP structure indicates which call is in progress. Alternatively, the MQXEP call can be used to register different exit functions for the two calls.
The MQ_CONNX_EXIT function is invoked before any authorization checks are performed by the queue manager.
MQ_CONNX_EXIT (&ExitParms, &ExitContext, QMgrName,
&pConnectOpts, &pHconn, &CompCode,
&Reason);
The parameters passed to the exit are declared as follows:
PMQAXP pExitParms; /* Exit parameter structure */
PMQAXC pExitContext; /* Exit context structure */
PMQCHAR48 pQMgrName; /* Name of queue manager */
PPMQCNO ppConnectOpts; /* Options that control the action of
MQCONNX */
PPMQHCONN ppHconn; /* Connection handle */
PMQLONG pCompCode; /* Completion code */
PMQLONG pReason; /* Reason code qualifying CompCode */