Ignore:
Timestamp:
Feb 23, 2007 1:07:54 AM (17 years ago)
Author:
bennylp
Message:

Ticket #121 and #122: Initial implementation of generic STUN transaction, with Binding request as an example

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib-util/src/pjstun-srv/server_main.c

    r992 r996  
    101101    pj_status_t status; 
    102102 
     103    /* Print to log */ 
     104    PJ_LOG(4,(THIS_FILE, "TX STUN message: \n" 
     105                         "--- begin STUN message ---\n" 
     106                         "%s" 
     107                         "--- end of STUN message ---\n",  
     108              pj_stun_msg_dump(msg, svc->tx_pkt, sizeof(svc->tx_pkt), NULL))); 
     109 
    103110    /* Encode packet */ 
    104111    tx_pkt_len = sizeof(svc->tx_pkt); 
     
    221228    unsigned uattr_cnt; 
    222229    pj_uint16_t uattr_types[16]; 
     230    char dump[512]; 
    223231    pj_status_t status; 
    224232 
     
    242250    } 
    243251 
    244     PJ_LOG(4,(THIS_FILE, "RX STUN %s %s message",  
    245               pj_stun_get_method_name(rx_msg->hdr.type), 
    246               pj_stun_get_class_name(rx_msg->hdr.type))); 
     252    PJ_LOG(4,(THIS_FILE, "RX STUN message: \n" 
     253                         "--- begin STUN message ---\n" 
     254                         "%s" 
     255                         "--- end of STUN message ---\n",  
     256              pj_stun_msg_dump(rx_msg, dump, sizeof(dump), NULL))); 
    247257 
    248258    if (PJ_STUN_IS_REQUEST(rx_msg->hdr.type)) { 
Note: See TracChangeset for help on using the changeset viewer.