Changes between Initial Version and Version 3 of Ticket #2197
- Timestamp:
- May 15, 2019 4:46:02 AM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #2197
- Property Owner set to nanang
- Property Status changed from new to closed
- Property Resolution changed from to fixed
-
Ticket #2197 – Description
initial v3 15 15 7. Once client receives {{{ConnectionBind}}} success response, the data connection is fully established, the TURN server will simply relay data until any side closes the connection. 16 16 17 === How to use === 18 TURN socket application needs to do the following: 19 1. When calling {{{pj_turn_sock_create()}}}, {{{conn_type}}} must be set to {{{PJ_TURN_TP_TCP}}}. 20 1. When calling {{{pj_turn_sock_alloc()}}}, {{{param.peer_conn_type}}} must be set to {{{PJ_TURN_TP_TCP}}}. 21 1. Implement TURN socket callbacks {{{on_connection_attempt}}} and {{{on_connection_status}}}, please check the TURN socket docs for more info. 22 1. The rest is as usual, e.g: sending data can be done using {{{pj_turn_sock_sendto()}}}, incoming data will be notified via callback {{{on_rx_data}}}. 23 17 24 Thank you Guillaume Roguez and Sébastien Blin from Savoir-faire Linux for the patch.