Diffusion C API  6.3.3
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Sending and receiving messages as a client.

Functions

void send_request (SESSION_T *session, SEND_REQUEST_PARAMS_T params)
 Send a request to a path. More...
 
DIFFUSION_REQUEST_STREAM_Tset_request_stream (SESSION_T *session, const char *path, DIFFUSION_DATATYPE request_datatype, DIFFUSION_DATATYPE response_datatype, const DIFFUSION_REQUEST_STREAM_T *request_stream)
 Set a request stream to handle requests to a specified path. More...
 
DIFFUSION_REQUEST_STREAM_Tremove_request_stream (SESSION_T *session, const char *request_path)
 Remove a request stream bound to a specified path. More...
 

Detailed Description

Function Documentation

DIFFUSION_REQUEST_STREAM_T* remove_request_stream ( SESSION_T session,
const char *  request_path 
)

Remove a request stream bound to a specified path.

Parameters
sessionThe session handle. If NULL, this function returns immediately.
request_pathThe path at which to remove the request stream. If NULL, this function returns immediately.
Returns
the request stream that was removed. NULL, if there is no request stream bound to this path.
void send_request ( SESSION_T session,
SEND_REQUEST_PARAMS_T  params 
)

Send a request to a path.

Parameters
sessionThe session handle. If NULL, this function returns immediately.
paramsParameters defining the request to be sent.
DIFFUSION_REQUEST_STREAM_T* set_request_stream ( SESSION_T session,
const char *  path,
DIFFUSION_DATATYPE  request_datatype,
DIFFUSION_DATATYPE  response_datatype,
const DIFFUSION_REQUEST_STREAM_T request_stream 
)

Set a request stream to handle requests to a specified path.

Parameters
sessionThe session handle. If NULL, this function returns immediately.
pathPath to receive requests on.
request_datatypeThe request datatype.
response_datatypeThe response datatype.
request_streamRequest stream to handle requests to this path
Returns
the current REQUEST_STREAM_T at this path. NULL, if this is the first stream to be set to the path.