Functions | |
zrtp_status_t | zrtp_process_rtp (zrtp_stream_t *stream, char *packet, unsigned int *length) |
Processing outgoing RTP packets. | |
zrtp_status_t | zrtp_process_srtp (zrtp_stream_t *stream, char *packet, unsigned int *length) |
Processing incoming RTP packets. | |
zrtp_status_t | zrtp_process_rtcp (zrtp_stream_t *stream, char *packet, unsigned int *length) |
Processing outgoing RTCP packets. | |
zrtp_status_t | zrtp_process_srtcp (zrtp_stream_t *stream, char *packet, unsigned int *length) |
Processing incoming RTCP packets. |
zrtp_status_t zrtp_process_rtcp | ( | zrtp_stream_t * | stream, | |
char * | packet, | |||
unsigned int * | length | |||
) |
Processing outgoing RTCP packets.
This is the main function for processing outgoing RTCP packets. The function behavior is similar to that of zrtp_process_rtp():
length
variable;
stream | - ZRTP session for processing; | |
packet | - buffer storing RTCP packet; | |
length | - length of the buffered packet. |
zrtp_status_t zrtp_process_rtp | ( | zrtp_stream_t * | stream, | |
char * | packet, | |||
unsigned int * | length | |||
) |
Processing outgoing RTP packets.
This is the main function for processing outgoing RTP packets. As soon as the protocol is started, each outgoing RTP packet (not encrypted) has to go through this function.
It performs different actions depending on the connection state and packet type:
stream | - ZRTP stream to process RTP packet; | |
packet | - buffer storing the RTP packet for encryption. After processing, the encrypted packet is stored in the same buffer. | |
length | - the length of the buffered packet. After processing, the length of encrypted packet is stored here. |
zrtp_status_t zrtp_process_srtcp | ( | zrtp_stream_t * | stream, | |
char * | packet, | |||
unsigned int * | length | |||
) |
Processing incoming RTCP packets.
This is the main function for processing incoming RTCP packets. The function behavior is similar to that of zrtp_process_srtp():
length
variable;
stream | - ZRTP stream for processing; | |
packet | - buffer storing the RTCP packet; | |
length | - length of the buffered packet. |
zrtp_status_t zrtp_process_srtp | ( | zrtp_stream_t * | stream, | |
char * | packet, | |||
unsigned int * | length | |||
) |
Processing incoming RTP packets.
This is the main function for incoming RTP packets processing. It is an analogue of zrtp_process_rtp() but for an incoming stream. After the protocol is started, each (encrypted) incoming RTP packet has to go through this function.
It performs different actions depending on the connection state and packet type:
stream | - ZRTP stream for processing | |
packet | - buffer storing the packet for decrypting. After processing, the decrypted packet is stored in the same buffer; | |
length | - the length of the buffered packet. After processing, the length of decrypted packet is stored here; |