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_sock.h

    r6004 r6071  
    8787                       const pj_sockaddr_t *peer_addr, 
    8888                       unsigned addr_len); 
     89 
     90    /** 
     91     * Notifification when asynchronous send operation has completed. 
     92     * 
     93     * @param turn_sock     The TURN transport. 
     94     * @param sent          If value is positive non-zero it indicates the 
     95     *                      number of data sent. When the value is negative, 
     96     *                      it contains the error code which can be retrieved 
     97     *                      by negating the value (i.e. status=-sent). 
     98     * 
     99     * @return              Application should normally return PJ_TRUE to let 
     100     *                      the TURN transport continue its operation. However 
     101     *                      it must return PJ_FALSE if it has destroyed the 
     102     *                      TURN transport in this callback. 
     103     */ 
     104    pj_bool_t (*on_data_sent)(pj_turn_sock *sock, 
     105                              pj_ssize_t sent); 
    89106 
    90107    /** 
     
    575592 * @param addr_len      Length of the address. 
    576593 * 
    577  * @return              PJ_SUCCESS if the operation has been successful, 
    578  *                      or the appropriate error code on failure. 
     594 * @return              PJ_SUCCESS if data has been sent immediately, or 
     595 *                      PJ_EPENDING if data cannot be sent immediately. In 
     596 *                      this case the \a on_data_sent() callback will be 
     597 *                      called when data is actually sent. Any other return 
     598 *                      value indicates error condition. 
    579599 */  
    580600PJ_DECL(pj_status_t) pj_turn_sock_sendto(pj_turn_sock *turn_sock, 
Note: See TracChangeset for help on using the changeset viewer.