Detailed Description
This structure contains callbacks that will be called by the TURN transport.
Field Documentation
Notification when incoming data has been received from the remote peer via the TURN server. The data reported in this callback will be the exact data as sent by the peer (e.g. the TURN encapsulation such as Data Indication or ChannelData will be removed before this function is called).
- Parameters:
-
| turn_sock | The TURN client transport. |
| data | The data as received from the peer. |
| data_len | Length of the data. |
| peer_addr | The peer address. |
| addr_len | The length of the peer address. |
Notification when TURN session state has changed. Application should implement this callback to monitor the progress of the TURN session.
- Parameters:
-
| turn_sock | The TURN client transport. |
| old_state | Previous state. |
| new_state | Current state. |
The documentation for this struct was generated from the following file: