pub type srtp_event_t = c_uint;
Expand description
@brief srtp_event_t defines events that need to be handled
The enum srtp_event_t defines events that need to be handled outside the `data plane’, such as SSRC collisions and key expirations.
When a key expires or the maximum number of packets has been reached, an SRTP stream will enter an `expired’ state in which no more packets can be protected or unprotected. When this happens, it is likely that you will want to either deallocate the stream (using srtp_remove_stream()), and possibly allocate a new one.
When an SRTP stream expires, the other streams in the same session are unaffected, unless key sharing is used by that stream. In the latter case, all of the streams in the session will expire.