zrtp_callback_misc_t Struct Reference
[Miscellaneous functions]

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.


Detailed Description

Miscellaneous Functions.

Field Documentation

int(* 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:

Generated on Wed Dec 9 17:31:06 2009 for libzrtp  zfone