libzrtp  1.2.0
ZRTP VoIP security
Data Fields
zrtp_callback_misc_t Struct Reference

Miscellaneous Functions. More...

#include <zrtp_iface.h>

Data Fields

int(* on_send_packet )(const zrtp_stream_t *stream, char *packet, unsigned int length)
 RTP packet sending function. More...
 

Detailed Description

Miscellaneous Functions.

Field Documentation

int(* zrtp_callback_misc_t::on_send_packet) (const zrtp_stream_t *stream, char *packet, unsigned int length)

RTP packet sending function.

This function pushes an outgoing ZRTP packet to the network. Correct building of IP and UPD headers is the developer's responsibility.

Parameters
stream- ZRTP stream context;
packet- buffer storing the ZRTP packet to send;
length- size of the ZRTP packet.
Returns
  • number of bytes sent if successful;
  • -1 if error occurred.

The documentation for this struct was generated from the following file: