libSRTP  2.1.0-pre
Functions
data associated to a SRTP session.

Store custom user data within a SRTP session. More...

Functions

void srtp_set_user_data (srtp_t ctx, void *data)
 srtp_set_user_data() stores the given pointer into the SRTP session for later retrieval. More...
 
void * srtp_get_user_data (srtp_t ctx)
 srtp_get_user_data() retrieves the pointer to the custom data previously stored with srtp_set_user_data(). More...
 

Detailed Description

Function Documentation

void* srtp_get_user_data ( srtp_t  ctx)

This function is mostly useful for retrieving data associated to a SRTP session when an event fires. The user can then get such a custom data by calling this function with the session field of the srtp_event_data_t struct as argument.

Parameters
ctxis the srtp_t context in which the given data pointer was stored.
Returns
void* pointer to the user data.
void srtp_set_user_data ( srtp_t  ctx,
void *  data 
)
Parameters
ctxis the srtp_t context in which the given data pointer is stored.
datais a pointer to the custom information (struct, function, etc) associated with the SRTP session.
Returns
void.