Isode SOM API
Queue Manager Operations
Enumerations | |
| enum | som_qmcontrol { SOM_QM_ABORT, SOM_QM_SHUTDOWN, SOM_QM_RESTART, SOM_QM_REREADQUEUE, SOM_QM_DISABLE_SUBMISSION, SOM_QM_ENABLE_SUBMISSION, SOM_QM_DISABLE_ALL, SOM_QM_ENABLE_ALL, SOM_QM_INCREASE_MAXCHANS, SOM_QM_DECREASE_MAXCHANS, SOM_QM_LOAD_CONFIG } |
| enum | som_qocontrol { SOM_QO_STOP, SOM_QO_START, SOM_QO_DISABLE_IN, SOM_QO_ENABLE_IN, SOM_QO_DELAY_CLEAR, SOM_QO_DELAY_SET, SOM_QO_MINIMISE, SOM_QO_DELETE, SOM_QO_CONNECT, SOM_QO_DISCONNECT, SOM_QO_TIMEOUT, SOM_QO_NONDELIVER, SOM_QO_REDIRECT, SOM_QO_REPROCESS, SOM_QO_RELOAD, SOM_QO_ABORT, SOM_QO_PAUSE, SOM_QO_RESUME } |
Functions | |
| int | SOMQueueControl (struct SOMSession *session, enum som_qmcontrol control, void *ophandle, int async) |
| Perform control operation on Queue Manager. | |
| int | SOMQueueStatus (struct SOMSession *session, void *ophandle, int async) |
| Get current Queue Manager status. | |
| 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. | |
| int | SOMQchannelRead (struct SOMSession *session, struct SOMQselector *selector, void *ophandle, int async) |
| Perform control operation on Queue Channel. | |
| 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. | |
| int | SOMQmtaRead (struct SOMSession *session, struct SOMQselector *selector, int limit, void *ophandle, int async) |
| Perform control operation on Queue Mta. | |
| 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. | |
| int | SOMQmessageRead (struct SOMSession *session, struct SOMQselector *selector, int limit, void *ophandle, int async) |
| Perform control operation on Queue Message. | |
| int | SOMQmessageSearch (struct SOMSession *session, struct SOMQfilter *filter, void *ophandle, int async) |
| Perform control operation on Queue Message. | |
Detailed Description
The operations which can be performed on the Queue Manager and the objects within that.Enumeration Type Documentation
| enum som_qmcontrol |
Operation codes for Queue Manager Operations
- Enumerator:
Definition at line 591 of file queue.h.
00591 { 00592 SOM_QM_ABORT, 00593 SOM_QM_SHUTDOWN, 00594 SOM_QM_RESTART, 00595 SOM_QM_REREADQUEUE, 00596 SOM_QM_DISABLE_SUBMISSION, 00597 SOM_QM_ENABLE_SUBMISSION, 00598 SOM_QM_DISABLE_ALL, 00599 SOM_QM_ENABLE_ALL, 00600 SOM_QM_INCREASE_MAXCHANS, 00601 SOM_QM_DECREASE_MAXCHANS, 00602 SOM_QM_LOAD_CONFIG 00603 };
| enum som_qocontrol |
Operation codes for operations on Channels, MTAs and Messages
- Enumerator:
Definition at line 606 of file queue.h.
00606 { 00607 SOM_QO_STOP, 00608 SOM_QO_START, 00609 SOM_QO_DISABLE_IN, 00610 SOM_QO_ENABLE_IN, 00611 SOM_QO_DELAY_CLEAR, 00612 SOM_QO_DELAY_SET, 00615 SOM_QO_MINIMISE, 00623 SOM_QO_DELETE, 00624 SOM_QO_CONNECT, 00625 SOM_QO_DISCONNECT, 00626 SOM_QO_TIMEOUT, 00627 SOM_QO_NONDELIVER, 00630 SOM_QO_REDIRECT, 00631 SOM_QO_REPROCESS, 00632 SOM_QO_RELOAD, 00633 SOM_QO_ABORT, 00634 SOM_QO_PAUSE, 00635 SOM_QO_RESUME 00636 };
Function Documentation
| 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
| 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
| 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
| 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
| 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
| 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
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.
| 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
| 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
| 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

