Store custom user data within a SRTP session.
More...
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
-
ctx | is 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
-
ctx | is the srtp_t context in which the given data pointer is stored. |
data | is a pointer to the custom information (struct, function, etc) associated with the SRTP session. |
- Returns
- void.