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

Functions for registering message handlers. More...

Data Structures

struct  svc_msg_receiver_registration_request_s
 Structure containing information passed to Diffusion in order to register a message handler at a topic endpoint. More...
 
struct  svc_msg_receiver_registration_response_s
 Response structure when a handler is registered. More...
 
struct  msg_receiver_registration_params_s
 Structure supplied when issuing a register_msg_handler() call. More...
 

Macros

#define DEFAULT_MSG_RECEIVER_GROUP_NAME
 Default control group if not specified.
 
#define MSG_RECEIVER_REGISTRATION_HANDLERS
 Handlers for notification of registration of handler and message receipt.
 

Typedefs

typedef struct
svc_msg_receiver_registration_request_s 
SVC_MSG_RECEIVER_REGISTRATION_REQUEST_T
 Structure containing information passed to Diffusion in order to register a message handler at a topic endpoint.
 
typedef struct
svc_msg_receiver_registration_response_s 
SVC_MSG_RECEIVER_REGISTRATION_RESPONSE_T
 Response structure when a handler is registered.
 
typedef int(* on_msg_receiver_registration_cb )(SESSION_T *session, void *context)
 Callback when a handler is registered with the server. More...
 
typedef struct
msg_receiver_registration_params_s 
MSG_RECEIVER_REGISTRATION_PARAMS_T
 Structure supplied when issuing a register_msg_handler() call.
 

Functions

void register_msg_handler (SESSION_T *session, const MSG_RECEIVER_REGISTRATION_PARAMS_T params)
 Register a message handler. More...
 
void deregister_msg_handler (SESSION_T *session, const MSG_RECEIVER_REGISTRATION_PARAMS_T params)
 Deregister a message handler. More...
 

Detailed Description

Functions for registering message handlers.

Typedef Documentation

typedef int(* on_msg_receiver_registration_cb)(SESSION_T *session, void *context)

Callback when a handler is registered with the server.

Parameters
sessionThe currently active session.
contextUser-supplied context from the initial register_msg_handler() call.
Returns
HANDLER_SUCCESS or HANDLER_FAILURE.