Logo Search packages:      
Sourcecode: srtp version File versions  Download package

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_stream_dealloc()), 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.

Enumerator:
event_ssrc_collision  An SSRC collision occured.
event_key_soft_limit  An SRTP stream reached the soft key usage limit and will expire soon.
event_key_hard_limit  An SRTP stream reached the hard key usage limit and has expired.
event_packet_index_limit  An SRTP stream reached the hard packet limit (2^48 packets).

Definition at line 799 of file srtp.h.

             { 
  event_ssrc_collision,    /**<
                      * An SSRC collision occured.             
                      */
  event_key_soft_limit,    /**< An SRTP stream reached the soft key
                      *   usage limit and will expire soon.    
                      */
  event_key_hard_limit,    /**< An SRTP stream reached the hard 
                      *   key usage limit and has expired.
                      */
  event_packet_index_limit /**< An SRTP stream reached the hard 
                      * packet limit (2^48 packets).             
                      */
} srtp_event_t;


Generated by  Doxygen 1.6.0   Back to index