Diffusion C API 6.11.6
Loading...
Searching...
No Matches
handler_set_s Struct Reference

A handler set is registered against a conversation id and contains function pointers to callback handlers related to that conversation. More...

#include <session_types.h>

Data Fields

SERVICE_TYPE_T service_type
 The handler's service type.
 
void(* service_handler [SERVICE_TYPE_MAX_VALUE])()
 Handlers for any service that may be related to the conversation.
 
int(* error_handler [SERVICE_TYPE_MAX_VALUE])()
 Error handler callbacks for services related to the conversation.
 
DISCARD_HANDLER_T discard_handler [SERVICE_TYPE_MAX_VALUE]
 Callback invoked when a conversation is discarded, e.g.
 
TOPIC_HANDLER_T topic_message_handler
 If a topic message is received for this conversation, then this callback is used to process it.
 
void * system_context
 This may contain service-specific data to be passed to context handlers.
 
void * user_params
 A structure containing the parameters passed in the initial API call.
 
void(* system_context_free )(void *ctx)
 Callback for freeing the system context when handler_set_free() is called.
 
void(* user_params_free )(void *params)
 Callback for freeing the user params when handler_set_free() is called.
 

Detailed Description

A handler set is registered against a conversation id and contains function pointers to callback handlers related to that conversation.

Users should avoid populating or accessing this structure.

Field Documentation

◆ discard_handler

DISCARD_HANDLER_T handler_set_s::discard_handler[SERVICE_TYPE_MAX_VALUE]

Callback invoked when a conversation is discarded, e.g.

due to reconnect/failover.

◆ system_context_free

void(* handler_set_s::system_context_free) (void *ctx)

Callback for freeing the system context when handler_set_free() is called.

If not provided, the memory is not freed.

◆ user_params

void* handler_set_s::user_params

A structure containing the parameters passed in the initial API call.

Specific to each API function, but normally includes user callbacks and context data.

◆ user_params_free

void(* handler_set_s::user_params_free) (void *params)

Callback for freeing the user params when handler_set_free() is called.

If not provided, free() will be used.


The documentation for this struct was generated from the following file: