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/src/pjnath/stun_msg.c

    r1924 r1988  
    15581558PJ_DEF(pj_status_t) pj_stun_msg_add_unknown_attr(pj_pool_t *pool, 
    15591559                                                 pj_stun_msg *msg, 
    1560                                                  unsigned attr_cnt, 
     1560                                                 pj_size_t attr_cnt, 
    15611561                                                 const pj_uint16_t attr_types[]) 
    15621562{ 
     
    16471647                                               int attr_type, 
    16481648                                               const pj_uint8_t *data, 
    1649                                                unsigned length, 
     1649                                               pj_size_t length, 
    16501650                                               pj_stun_binary_attr **p_attr) 
    16511651{ 
     
    16741674                                                int attr_type, 
    16751675                                                const pj_uint8_t *data, 
    1676                                                 unsigned length) 
     1676                                                pj_size_t length) 
    16771677{ 
    16781678    pj_stun_binary_attr *attr = NULL; 
     
    18341834 * Check that the PDU is potentially a valid STUN message. 
    18351835 */ 
    1836 PJ_DEF(pj_status_t) pj_stun_msg_check(const pj_uint8_t *pdu, unsigned pdu_len, 
     1836PJ_DEF(pj_status_t) pj_stun_msg_check(const pj_uint8_t *pdu, pj_size_t pdu_len, 
    18371837                                      unsigned options) 
    18381838{ 
    1839     unsigned msg_len; 
     1839    pj_size_t msg_len; 
    18401840 
    18411841    PJ_ASSERT_RETURN(pdu, PJ_EINVAL); 
     
    19391939PJ_DEF(pj_status_t) pj_stun_msg_decode(pj_pool_t *pool, 
    19401940                                       const pj_uint8_t *pdu, 
    1941                                        unsigned pdu_len, 
     1941                                       pj_size_t pdu_len, 
    19421942                                       unsigned options, 
    19431943                                       pj_stun_msg **p_msg, 
    1944                                        unsigned *p_parsed_len, 
     1944                                       pj_size_t *p_parsed_len, 
    19451945                                       pj_stun_msg **p_response) 
    19461946{ 
     
    21912191PJ_DEF(pj_status_t) pj_stun_msg_encode(pj_stun_msg *msg, 
    21922192                                       pj_uint8_t *buf, unsigned buf_size, 
    2193                                        unsigned options, 
     2193                                       pj_size_t options, 
    21942194                                       const pj_str_t *key, 
    2195                                        unsigned *p_msg_len) 
     2195                                       pj_size_t *p_msg_len) 
    21962196{ 
    21972197    pj_uint8_t *start = buf; 
Note: See TracChangeset for help on using the changeset viewer.