Ignore:
Timestamp:
Jun 6, 2008 2:47:10 PM (16 years ago)
Author:
bennylp
Message:

Major major modifications related to ticket #485 (support for TURN-07):

  • Added STUN socket transport pj_stun_sock
  • Integration of TURN-07 to ICE
  • Major refactoring in ICE stream transport to make it simpler
  • Major modification (i.e. API change) in almost everywhere else
  • Much more elaborate STUN, TURN, and ICE tests in pjnath-test
File:
1 edited

Legend:

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

    r1924 r1988  
    3535/** 
    3636 * @defgroup PJNATH_STUN_MSG STUN Message Representation and Parsing 
     37 * @ingroup PJNATH_STUN 
    3738 * @brief Low-level representation and parsing of STUN messages. 
    38  * @ingroup PJNATH_STUN 
    3939 * @{ 
    4040 */ 
     
    956956 * This describes the TURN REQUESTED-PROPS attribute, encoded as 
    957957 * STUN 32bit integer attribute. Few macros are provided to manipulate 
    958  * the values in this attribute: #PJ_STUN_GET_RPP_BITS(),  
    959  * #PJ_STUN_SET_RPP_BITS(), #PJ_STUN_GET_RPP_PORT(), and 
    960  * #PJ_STUN_SET_RPP_PORT(). 
     958 * the values in this attribute: #PJ_STUN_GET_PROP_TYPE(), and 
     959 * #PJ_STUN_SET_PROP_TYPE(). 
    961960 *  
    962961 * This attribute allows the client to request certain properties for 
     
    11651164     * #pj_stun_msg_check() and #pj_stun_msg_decode() to disable the  
    11661165     * verification of FINGERPRINT, for example when the STUN usage says when 
    1167      * FINGERPRINT mechanism shall not * be used. 
     1166     * FINGERPRINT mechanism shall not be used. 
    11681167     */ 
    11691168    PJ_STUN_NO_FINGERPRINT_CHECK = 8 
     
    12931292 * 
    12941293 * If application wants to apply credential to the message, it MUST 
    1295  * include a blank MESSAGE-INTEGRITY attribute in the message, as the 
     1294 * include a blank MESSAGE-INTEGRITY attribute in the message as the 
    12961295 * last attribute or the attribute before FINGERPRINT. This function will 
    12971296 * calculate the HMAC digest from the message using  the supplied key in 
     
    13211320PJ_DECL(pj_status_t) pj_stun_msg_encode(pj_stun_msg *msg, 
    13221321                                        pj_uint8_t *pkt_buf, 
    1323                                         unsigned buf_size, 
     1322                                        pj_size_t buf_size, 
    13241323                                        unsigned options, 
    13251324                                        const pj_str_t *key, 
    1326                                         unsigned *p_msg_len); 
     1325                                        pj_size_t *p_msg_len); 
    13271326 
    13281327/** 
     
    13461345 */ 
    13471346PJ_DECL(pj_status_t) pj_stun_msg_check(const pj_uint8_t *pdu,  
    1348                                        unsigned pdu_len, unsigned options); 
     1347                                       pj_size_t pdu_len, unsigned options); 
    13491348 
    13501349 
     
    13721371PJ_DECL(pj_status_t) pj_stun_msg_decode(pj_pool_t *pool, 
    13731372                                        const pj_uint8_t *pdu, 
    1374                                         unsigned pdu_len, 
     1373                                        pj_size_t pdu_len, 
    13751374                                        unsigned options, 
    13761375                                        pj_stun_msg **p_msg, 
    1377                                         unsigned *p_parsed_len, 
     1376                                        pj_size_t *p_parsed_len, 
    13781377                                        pj_stun_msg **p_response); 
    13791378 
Note: See TracChangeset for help on using the changeset viewer.