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

Functions to handle system-level ping requests and responses. More...

Data Structures

struct  svc_ping_system_request_s
 Structure of a system ping request. More...
 
struct  svc_ping_system_response_s
 Structure of a system ping response. More...
 
struct  ping_system_handlers_s
 
struct  ping_system_params_s
 Structure supplied when registering a system ping handler or sending a system ping request. More...
 

Macros

#define PING_SYSTEM_HANDLERS
 Callback handlers that can be registered for dealing with system ping responses.
 

Typedefs

typedef struct
svc_ping_system_request_s 
SVC_PING_SYSTEM_REQUEST_T
 Structure of a system ping request.
 
typedef struct
svc_ping_system_response_s 
SVC_PING_SYSTEM_RESPONSE_T
 Structure of a system ping response.
 
typedef int(* on_ping_system_request_cb )(SESSION_T *session, const SVC_PING_SYSTEM_REQUEST_T *request, void *context)
 Callback for ping_system_register_handler(). More...
 
typedef int(* on_ping_system_response_cb )(SESSION_T *session, void *context)
 Callback for ping_system(). More...
 
typedef struct ping_system_params_s PING_SYSTEM_PARAMS_T
 Structure supplied when registering a system ping handler or sending a system ping request.
 

Functions

void ping_system_register_handler (SESSION_T *session, const PING_SYSTEM_PARAMS_T params)
 Register a user-defined handler for system pings. More...
 

Detailed Description

Functions to handle system-level ping requests and responses.

Typedef Documentation

typedef int(* on_ping_system_request_cb)(SESSION_T *session, const SVC_PING_SYSTEM_REQUEST_T *request, void *context)

Callback for ping_system_register_handler().

Parameters
sessionThe current active session.
requestThe incoming ping request.
contextUser-supplied context from the initial registration call.
Returns
HANDLER_SUCCESS or HANDLER_FAILURE.
typedef int(* on_ping_system_response_cb)(SESSION_T *session, void *context)

Callback for ping_system().

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