Ignore:
Timestamp:
Sep 23, 2019 7:25:41 AM (5 years ago)
Author:
ming
Message:

Fixed #2229: Limitations in ICE data sending

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjnath/include/pjnath/turn_session.h

    r6004 r6071  
    234234    /** 
    235235     * This callback will be called by the TURN session whenever it 
    236      * needs to send outgoing message. Since the TURN session doesn't 
    237      * have a socket on its own, this callback must be implemented. 
     236     * needs to send data or outgoing messages. Since the TURN session 
     237     * doesn't have a socket on its own, this callback must be implemented. 
     238     * 
     239     * If the callback \a on_stun_send_pkt() is implemented, outgoing 
     240     * messages will use that callback instead. 
    238241     * 
    239242     * @param sess      The TURN session. 
     
    251254                               const pj_sockaddr_t *dst_addr, 
    252255                               unsigned addr_len); 
     256 
     257    /** 
     258     * This callback will be called by the TURN session whenever it 
     259     * needs to send outgoing STUN requests/messages for TURN signalling 
     260     * purposes (data sending will not invoke this callback). If this 
     261     * callback is not implemented, the callback \a on_send_pkt() 
     262     * will be called instead. 
     263     * 
     264     * @param sess      The TURN session. 
     265     * @param pkt       The packet/data to be sent. 
     266     * @param pkt_len   Length of the packet/data. 
     267     * @param dst_addr  Destination address of the packet. 
     268     * @param addr_len  Length of the destination address. 
     269     * 
     270     * @return          The callback should return the status of the 
     271     *                  send operation.  
     272     */ 
     273    pj_status_t (*on_stun_send_pkt)(pj_turn_session *sess, 
     274                                    const pj_uint8_t *pkt, 
     275                                    unsigned pkt_len, 
     276                                    const pj_sockaddr_t *dst_addr, 
     277                                    unsigned addr_len); 
    253278 
    254279    /** 
     
    763788 * @param addr_len      Length of the address. 
    764789 * 
    765  * @return              PJ_SUCCESS if the operation has been successful, 
    766  *                      or the appropriate error code on failure. 
     790 * @return              If the callback \a on_send_pkt() is called, this 
     791 *                      will contain the return value of the callback. 
     792 *                      Otherwise, it will indicate failure with 
     793 *                      the appropriate error code. 
    767794 */ 
    768795PJ_DECL(pj_status_t) pj_turn_session_sendto(pj_turn_session *sess, 
Note: See TracChangeset for help on using the changeset viewer.