Diffusion C API  6.3.3
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Handling messages from and to clients.

Functions

SESSION_ID_Tdiffusion_request_context_get_session_id (const DIFFUSION_REQUEST_CONTEXT_T *request_context)
 Return a copy of the request context's session ID. More...
 
char * diffusion_request_context_get_path (const DIFFUSION_REQUEST_CONTEXT_T *request_context)
 Return a copy of the request context's request path. More...
 
HASH_Tdiffusion_request_context_get_session_properties (const DIFFUSION_REQUEST_CONTEXT_T *request_context)
 Return a copy of the request context's session properties. More...
 
void send_request_to_session (SESSION_T *session, SEND_REQUEST_TO_SESSION_PARAMS_T params)
 Send a request to a specific session. More...
 
void add_request_handler (SESSION_T *session, ADD_REQUEST_HANDLER_PARAMS_T params)
 Add a server registered request handler. More...
 

Detailed Description

Function Documentation

void add_request_handler ( SESSION_T session,
ADD_REQUEST_HANDLER_PARAMS_T  params 
)

Add a server registered request handler.

Parameters
sessionThe session handle. If NULL, this function returns immediately.
paramsParameters defining the request handler to be added.
char* diffusion_request_context_get_path ( const DIFFUSION_REQUEST_CONTEXT_T request_context)

Return a copy of the request context's request path.

Parameters
request_contextthe request context to retrieve the request path from.
Returns
a copy of the request context's request path. NULL, if request_context is NULL.
SESSION_ID_T* diffusion_request_context_get_session_id ( const DIFFUSION_REQUEST_CONTEXT_T request_context)

Return a copy of the request context's session ID.

Parameters
request_contextthe request context to retrieve the session ID from.
Returns
a copy of the request context's session ID. NULL, if request_context is NULL.
HASH_T* diffusion_request_context_get_session_properties ( const DIFFUSION_REQUEST_CONTEXT_T request_context)

Return a copy of the request context's session properties.

Parameters
request_contextthe request context to retrieve session properties from.
Returns
a copy of the request context's session properties. NULL, if request_context is NULL.
void send_request_to_session ( SESSION_T session,
SEND_REQUEST_TO_SESSION_PARAMS_T  params 
)

Send a request to a specific session.

Parameters
sessionThe session handle. If NULL, this function returns immediately.
paramsParameters defining the request to send a request to a specific session.