Diffusion C API  5.9.24
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
svc-notify-subscription.h File Reference

Functions for notifying a client that it has been subscribed to a topic. More...

Data Structures

struct  svc_notify_subscription_request_s
 Structure describing an incoming notification that the client has been subscribed to a topic. More...
 
struct  svc_notify_subscription_response_s
 Response message to subscription notifications. More...
 
struct  notify_subscription_handlers_s
 
struct  notify_subscription_params_s
 Structure supplied when registering to receive topic subscription notifications. More...
 

Macros

#define NOTIFY_SUBSCRIPTION
 Callback handlers for subscription notification messages.
 

Typedefs

typedef struct
svc_notify_subscription_request_s 
SVC_NOTIFY_SUBSCRIPTION_REQUEST_T
 Structure describing an incoming notification that the client has been subscribed to a topic.
 
typedef struct
svc_notify_subscription_response_s 
SVC_NOTIFY_SUBSCRIPTION_RESPONSE_T
 Response message to subscription notifications.
 
typedef int(* on_notify_subscription_cb )(SESSION_T *session, const SVC_NOTIFY_SUBSCRIPTION_REQUEST_T *request, void *context)
 Callback for notify_subscription_register(). More...
 
typedef struct
notify_subscription_params_s 
NOTIFY_SUBSCRIPTION_PARAMS_T
 Structure supplied when registering to receive topic subscription notifications.
 

Functions

void notify_subscription_register (SESSION_T *session, const NOTIFY_SUBSCRIPTION_PARAMS_T params)
 Register to receive subscription notifications. More...
 

Detailed Description

Functions for notifying a client that it has been subscribed to a topic.

Typedef Documentation

typedef int(* on_notify_subscription_cb)(SESSION_T *session, const SVC_NOTIFY_SUBSCRIPTION_REQUEST_T *request, void *context)

Callback for notify_subscription_register().

Parameters
sessionThe current active session.
requestThe incoming notification request.
contextUser-supplied context from the initial registration call.
Returns
HANDLER_SUCCESS or HANDLER_FAILURE.