Ignore:
Timestamp:
Mar 1, 2007 12:08:27 AM (17 years ago)
Author:
bennylp
Message:

More work on STUN session framework

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib-util/include/pjlib-util/stun_msg.h

    r1003 r1021  
    11751175 * the FINGERPRINT CRC attribute for the message. 
    11761176 * 
    1177  * @param msg           The STUN message to be printed. 
     1177 * @param msg           The STUN message to be printed. Upon return, 
     1178 *                      some fields in the header (such as message 
     1179 *                      length) will be updated. 
    11781180 * @param pkt_buf       The buffer to be filled with the packet. 
    11791181 * @param buf_size      Size of the buffer. 
     
    11871189 * @return              PJ_SUCCESS on success or the appropriate error code. 
    11881190 */ 
    1189 PJ_DECL(pj_status_t) pj_stun_msg_encode(const pj_stun_msg *msg, 
     1191PJ_DECL(pj_status_t) pj_stun_msg_encode(pj_stun_msg *msg, 
    11901192                                        pj_uint8_t *pkt_buf, 
    11911193                                        unsigned buf_size, 
     
    14231425 * @param xor_ed        If non-zero, the port and address will be XOR-ed 
    14241426 *                      with magic, to make the XOR-MAPPED-ADDRESS attribute. 
     1427 * @param addr          A pj_sockaddr_in or pj_sockaddr_in6 structure. 
    14251428 * @param addr_len      Length of \a addr parameter. 
    1426  * @param addr          A pj_sockaddr_in or pj_sockaddr_in6 structure. 
    14271429 * @param p_attr        Pointer to receive the attribute. 
    14281430 * 
     
    14331435                                    int attr_type,  
    14341436                                    pj_bool_t xor_ed, 
     1437                                    const pj_sockaddr_t *addr, 
    14351438                                    unsigned addr_len, 
    1436                                     const pj_sockaddr_t *addr, 
    14371439                                    pj_stun_generic_ip_addr_attr **p_attr); 
    14381440 
     
    14481450 * @param xor_ed        If non-zero, the port and address will be XOR-ed 
    14491451 *                      with magic, to make the XOR-MAPPED-ADDRESS attribute. 
     1452 * @param addr          A pj_sockaddr_in or pj_sockaddr_in6 structure. 
    14501453 * @param addr_len      Length of \a addr parameter. 
    1451  * @param addr          A pj_sockaddr_in or pj_sockaddr_in6 structure. 
    14521454 * 
    14531455 * @return              PJ_SUCCESS on success or the appropriate error code. 
     
    14581460                                     int attr_type,  
    14591461                                     pj_bool_t xor_ed, 
    1460                                      unsigned addr_len, 
    1461                                      const pj_sockaddr_t *addr); 
     1462                                     const pj_sockaddr_t *addr, 
     1463                                     unsigned addr_len); 
    14621464 
    14631465/** 
Note: See TracChangeset for help on using the changeset viewer.