BLOG | DOCUMENTATION | TRAC

Home --> Documentations --> PJNATH Reference

Data Fields

void(* on_rx_data )(pj_ice_strans *ice_st, unsigned comp_id, void *pkt, pj_size_t size, const pj_sockaddr_t *src_addr, unsigned src_addr_len)
 
void(* on_ice_complete )(pj_ice_strans *ice_st, pj_ice_strans_op op, pj_status_t status)
 

Detailed Description

This structure contains callbacks that will be called by the ICE stream transport.

Field Documentation

void(* pj_ice_strans_cb::on_ice_complete)(pj_ice_strans *ice_st, pj_ice_strans_op op, pj_status_t status)

Callback to report status of various ICE operations.

Parameters
ice_stThe ICE stream transport.
opThe operation which status is being reported.
statusOperation status.
void(* pj_ice_strans_cb::on_rx_data)(pj_ice_strans *ice_st, unsigned comp_id, void *pkt, pj_size_t size, const pj_sockaddr_t *src_addr, unsigned src_addr_len)

This callback will be called when the ICE transport receives incoming packet from the sockets which is not related to ICE (for example, normal RTP/RTCP packet destined for application).

Parameters
ice_stThe ICE stream transport.
comp_idThe component ID.
pktThe packet.
sizeSize of the packet.
src_addrSource address of the packet.
src_addr_lenLength of the source address.

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

 


PJNATH - Open Source NAT traversal helper library supporting STUN, TURN, and ICE
Copyright (C) 2006-2009 Teluu Inc.