WARNING: The online documentation has moved to https://docs.pjsip.org.

Visit the new documentation at https://docs.pjsip.org:

BLOG | DOCUMENTATION | GITHUB

Home --> Documentations --> PJNATH Reference

pj_ice_strans_cb Struct Reference
[ICE stream transport]

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

Callback to report status of various ICE operations.

Parameters:
ice_st The ICE stream transport.
op The operation which status is being reported.
status Operation 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_st The ICE stream transport.
comp_id The component ID.
pkt The packet.
size Size of the packet.
src_addr Source address of the packet.
src_addr_len Length 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.