![]() |
Diffusion C API 6.11.5
|
Functions | |
void | add_topic_from_specification (SESSION_T *session, const char *topic_path, const TOPIC_SPECIFICATION_T *specification, const ADD_TOPIC_CALLBACK_T callback) |
Add a topic to Diffusion. | |
void | topic_removal (SESSION_T *session, const TOPIC_REMOVAL_PARAMS_T params) |
Remove topics from Diffusion. | |
CONVERSATION_ID_T * | missing_topic_register_handler (SESSION_T *session, const MISSING_TOPIC_PARAMS_T params) |
Register to receive notifications about missing topics that clients attempt to subscribe. | |
void | missing_topic_deregister_handler (SESSION_T *session, const CONVERSATION_ID_T *conversation_id) |
Cease receiving missing topic notifications. | |
void add_topic_from_specification | ( | SESSION_T * | session, |
const char * | topic_path, | ||
const TOPIC_SPECIFICATION_T * | specification, | ||
const ADD_TOPIC_CALLBACK_T | callback | ||
) |
Add a topic to Diffusion.
session | The current session. If NULL, this function returns immediately. |
topic_path | The topic path to be added. |
specification | The topic specification |
callback | Struct containing pointers to callback functions will be called when a response to the request is received from the server. |
void missing_topic_deregister_handler | ( | SESSION_T * | session, |
const CONVERSATION_ID_T * | conversation_id | ||
) |
Cease receiving missing topic notifications.
session | The current session. If NULL, this function returns immediately. |
conversation_id | The conversation id returned from a previous call to missing_topic_register_handler(). |
CONVERSATION_ID_T * missing_topic_register_handler | ( | SESSION_T * | session, |
const MISSING_TOPIC_PARAMS_T | params | ||
) |
Register to receive notifications about missing topics that clients attempt to subscribe.
Register a handler for receiving missing topic notifications when a client attempts to subscribe to a topic underneath a given root topic, but that requested topic doesn't exist.
session | The current session. If NULL, this function returns immediately with the value NULL. |
params | Parameters defining the registration request. |
void topic_removal | ( | SESSION_T * | session, |
const TOPIC_REMOVAL_PARAMS_T | params | ||
) |
Remove topics from Diffusion.
Send a request to remove one or more topics at the server. The topics to remove will depend upon the nature of the topic selector specified. If the selector does not have descendant pattern qualifiers (i.e. / or //), only those topics that exist at paths indicated by the selector will be removed and not their descendants. If a single / qualifier is specified, all descendants of the matching topic paths will be removed. If // is specified, all branches of the topic tree that match the selector (i.e topics at the selected paths and all descendants of the selected paths) will be removed.
session | The current session. If NULL, this function returns immediately. |
params | Parameter structure describing which topics to remove and callbacks to handle success or failure notifications. |