Ignore:
Timestamp:
Jun 28, 2016 6:33:20 AM (8 years ago)
Author:
ming
Message:

Re #422: IPv6 support for NAT detect

Add API pj_stun_detect_nat_type2()

File:
1 edited

Legend:

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

    r3553 r5359  
    175175 * asynchronously. Application can register a callback to be notified 
    176176 * when such detection has completed. 
     177 * 
     178 * See also #pj_stun_detect_nat_type2() which supports IPv6. 
    177179 * 
    178180 * @param server        STUN server address. 
     
    198200 
    199201/** 
     202 * Variant of #pj_stun_detect_nat_type() that supports IPv6. 
     203 * 
     204 * @param server        STUN server address. 
     205 * @param stun_cfg      A structure containing various STUN configurations, 
     206 *                      such as the ioqueue and timer heap instance used 
     207 *                      to receive network I/O and timer events. 
     208 * @param user_data     Application data, which will be returned back 
     209 *                      in the callback. 
     210 * @param cb            Callback to be registered to receive notification 
     211 *                      about detection result. 
     212 * 
     213 * @return              If this function returns PJ_SUCCESS, the procedure 
     214 *                      will complete asynchronously and callback will be 
     215 *                      called when it completes. For other return 
     216 *                      values, it means that an error has occured and 
     217 *                      the procedure did not start. 
     218 */ 
     219PJ_DECL(pj_status_t) pj_stun_detect_nat_type2(const pj_sockaddr *server, 
     220                                              pj_stun_config *stun_cfg, 
     221                                              void *user_data, 
     222                                              pj_stun_nat_detect_cb *cb); 
     223 
     224 
     225/** 
    200226 * @} 
    201227 */ 
Note: See TracChangeset for help on using the changeset viewer.