The operations which can be performed on the Queue Manager and the objects within that. More...
Functions | |
int | SOMQueueControl (struct SOMSession *session, enum som_qmcontrol control, void *ophandle, int async) |
Perform control operation on Queue Manager. More... | |
int | SOMQueueStatus (struct SOMSession *session, void *ophandle, int async) |
Get current Queue Manager status. More... | |
int | SOMQchannelControl (struct SOMSession *session, struct SOMQselector *selector, enum som_qocontrol control, const char *data, int datalen, void *ophandle, int async) |
Perform control operation on Queue Channel. More... | |
int | SOMQchannelRead (struct SOMSession *session, struct SOMQselector *selector, void *ophandle, int async) |
Perform control operation on Queue Channel. More... | |
int | SOMQmtaControl (struct SOMSession *session, struct SOMQselector *selector, enum som_qocontrol control, const char *data, int datalen, void *ophandle, int async) |
Perform control operation on Queue Mta. More... | |
int | SOMQmtaRead (struct SOMSession *session, struct SOMQselector *selector, int limit, void *ophandle, int async) |
Perform control operation on Queue Mta. More... | |
int | SOMQmessageControl (struct SOMSession *session, struct SOMQselector *selector, enum som_qocontrol control, const char *data, int datalen, void *ophandle, int async) |
Perform control operation on Queue Message. More... | |
int | SOMQmessageRead (struct SOMSession *session, struct SOMQselector *selector, int limit, void *ophandle, int async) |
Perform control operation on Queue Message. More... | |
int | SOMQmessageSearch (struct SOMSession *session, struct SOMQfilter *filter, void *ophandle, int async) |
Perform control operation on Queue Message. More... | |
Detailed Description
The operations which can be performed on the Queue Manager and the objects within that.
Enumeration Type Documentation
◆ som_qmcontrol
enum som_qmcontrol |
Operation codes for Queue Manager Operations
Definition at line 591 of file queue.h.
◆ som_qocontrol
enum som_qocontrol |
Operation codes for operations on Channels, MTAs and Messages
Definition at line 606 of file queue.h.
Function Documentation
◆ SOMQueueControl()
int SOMQueueControl | ( | struct SOMSession * | session, |
enum som_qmcontrol | control, | ||
void * | ophandle, | ||
int | async | ||
) |
Perform control operation on Queue Manager.
- Parameters
-
session [in] Pointer to address of session object control [in] Enumerated value indicating the operation ophandle [in] Value passed to callback async [in] Operation is asynchronous if TRUE
- Returns
- zero on success; non-zero on error
◆ SOMQueueStatus()
int SOMQueueStatus | ( | struct SOMSession * | session, |
void * | ophandle, | ||
int | async | ||
) |
Get current Queue Manager status.
- Parameters
-
session [in] Pointer to address of session object ophandle [in] Value passed to callback async [in] Operation is asynchronous if TRUE
- Returns
- zero on success; non-zero on error
After a successful return, or in the callback routine if async., the manager data can be retrieved via the session object using SOMQmanagerGetStrParam and SOMQmanagerGetIntParam
◆ SOMQchannelControl()
int SOMQchannelControl | ( | struct SOMSession * | session, |
struct SOMQselector * | selector, | ||
enum som_qocontrol | control, | ||
const char * | data, | ||
int | datalen, | ||
void * | ophandle, | ||
int | async | ||
) |
Perform control operation on Queue Channel.
- Parameters
-
session [in] Pointer to address of session object selector [in] Pointer to selector which selects the channel(s) control [in] Enumerated value indicating the operation data [in] Pointer to value used for some operations datalen [in] Length of data. Can be -1 if data is NUL terminated ophandle [in] Value passed to callback async [in] Operation is asynchronous if TRUE
- Returns
- zero on success; non-zero on error
Channel data is returned via the callback for the channels affected by this operation.
◆ SOMQchannelRead()
int SOMQchannelRead | ( | struct SOMSession * | session, |
struct SOMQselector * | selector, | ||
void * | ophandle, | ||
int | async | ||
) |
Perform control operation on Queue Channel.
- Parameters
-
session [in] Pointer to address of session object selector [in] Pointer to selector which selects the channel(s) ophandle [in] Value passed to callback async [in] Operation is asynchronous if TRUE
- Returns
- zero on success; non-zero on error
Channel data is returned via the callback for the channels selected by this operation.
◆ SOMQmtaControl()
int SOMQmtaControl | ( | struct SOMSession * | session, |
struct SOMQselector * | selector, | ||
enum som_qocontrol | control, | ||
const char * | data, | ||
int | datalen, | ||
void * | ophandle, | ||
int | async | ||
) |
Perform control operation on Queue Mta.
- Parameters
-
session [in] Pointer to address of session object selector [in] Pointer to selector which selects the mta(s) control [in] Enumerated value indicating the operation data [in] Pointer to value used for some operations datalen [in] Length of data. Can be -1 if data is NUL terminated ophandle [in] Value passed to callback async [in] Operation is asynchronous if TRUE
- Returns
- zero on success; non-zero on error
Mta data is returned via the callback for the mtas affected by this operation.
◆ SOMQmtaRead()
int SOMQmtaRead | ( | struct SOMSession * | session, |
struct SOMQselector * | selector, | ||
int | limit, | ||
void * | ophandle, | ||
int | async | ||
) |
Perform control operation on Queue Mta.
- Parameters
-
session [in] Pointer to address of session object selector [in] Pointer to selector which selects the mta(s) limit [in] Limit on number of MTAs returned ophandle [in] Value passed to callback async [in] Operation is asynchronous if TRUE
- Returns
- zero on success; non-zero on error
Mta data is returned via the callback for the mtas selected by this operation.
If limit is zero, there is no limit. If a limit is set, then if more would be returned, then the operation returns an error, but MTAs are reported via the call-back.
◆ SOMQmessageControl()
int SOMQmessageControl | ( | struct SOMSession * | session, |
struct SOMQselector * | selector, | ||
enum som_qocontrol | control, | ||
const char * | data, | ||
int | datalen, | ||
void * | ophandle, | ||
int | async | ||
) |
Perform control operation on Queue Message.
- Parameters
-
session [in] Pointer to address of session object selector [in] Pointer to selector which selects the message(s) control [in] Enumerated value indicating the operation data [in] Pointer to value used for some operations datalen [in] Length of data. Can be -1 if data is NUL terminated ophandle [in] Value passed to callback async [in] Operation is asynchronous if TRUE
- Returns
- zero on success; non-zero on error
Message data is returned via the callback for the messages affected by this operation.
◆ SOMQmessageRead()
int SOMQmessageRead | ( | struct SOMSession * | session, |
struct SOMQselector * | selector, | ||
int | limit, | ||
void * | ophandle, | ||
int | async | ||
) |
Perform control operation on Queue Message.
- Parameters
-
session [in] Pointer to address of session object selector [in] Pointer to selector which selects the message(s) limit [in] Maximum number of messages to return ophandle [in] Value passed to callback async [in] Operation is asynchronous if TRUE
- Returns
- zero on success; non-zero on error
Message data is returned via the callback for the messages selected by this operation.
◆ SOMQmessageSearch()
int SOMQmessageSearch | ( | struct SOMSession * | session, |
struct SOMQfilter * | filter, | ||
void * | ophandle, | ||
int | async | ||
) |
Perform control operation on Queue Message.
- Parameters
-
session [in] Pointer to address of session object filter [in] Pointer to filter chain ophandle [in] Value passed to callback async [in] Operation is asynchronous if TRUE
- Returns
- zero on success; non-zero on error
Message data is returned via the callback for the messages selected by this operation.