Changes between Initial Version and Version 3 of Ticket #2197


Ignore:
Timestamp:
May 15, 2019 4:46:02 AM (5 years ago)
Author:
nanang
Comment:

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  
    15157. 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. 
    1616 
     17=== How to use === 
     18TURN 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 
    1724Thank you Guillaume Roguez and Sébastien Blin from Savoir-faire Linux for the patch.