Diffusion C API
6.1.5
|
Client functions for fetching data from topics. More...
Data Structures | |
struct | svc_fetch_request_s |
Structure used to model a fetch request. More... | |
struct | svc_fetch_response_s |
Structure used to model a fetch response. More... | |
struct | svc_fetch_status_response_s |
Structure passed to fetch response callback. More... | |
struct | fetch_handlers_s |
struct | fetch_params_s |
Structure supplied to a fetch() request. More... | |
Macros | |
#define | FETCH_HANDLERS |
Callbacks which can be registered for handling the responses to the fetch request. | |
Typedefs | |
typedef struct svc_fetch_request_s | SVC_FETCH_REQUEST_T |
Structure used to model a fetch request. | |
typedef struct svc_fetch_response_s | SVC_FETCH_RESPONSE_T |
Structure used to model a fetch response. | |
typedef struct svc_fetch_status_response_s | SVC_FETCH_STATUS_RESPONSE_T |
Structure passed to fetch response callback. | |
typedef int(* | on_fetch_cb )(SESSION_T *session, void *context) |
Callback for on_fetch() command having been received by Diffusion. More... | |
typedef int(* | on_fetch_status_message_cb )(SESSION_T *session, const SVC_FETCH_STATUS_RESPONSE_T *status, void *context) |
Callback for on_status_message() indicating the end of the fetch conversation. More... | |
typedef struct fetch_params_s | FETCH_PARAMS_T |
Structure supplied to a fetch() request. | |
Functions | |
void | fetch (SESSION_T *session, const FETCH_PARAMS_T params) |
Fetch state for a topic (or many topics). More... | |
Client functions for fetching data from topics.
typedef int(* on_fetch_cb)(SESSION_T *session, void *context) |
Callback for on_fetch() command having been received by Diffusion.
session | The currently active session. |
context | User-supplied context from the fetch() call. |
typedef int(* on_fetch_status_message_cb)(SESSION_T *session, const SVC_FETCH_STATUS_RESPONSE_T *status, void *context) |
Callback for on_status_message() indicating the end of the fetch conversation.
session | The currently active session. |
status | The fetch status response. |
context | User-supplied context from the fetch() call. |