Ignore:
Timestamp:
Mar 18, 2007 5:39:27 PM (14 years ago)
Author:
bennylp
Message:

Changed pj_sockaddr structure and added pjnath project for ICE/STUN stuffs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjnath/src/pjstun-srv-test/turn_usage.c

    r1054 r1080  
    7070{ 
    7171    pj_pool_factory     *pf; 
    72     pj_stun_endpoint    *endpt; 
     72    pj_stun_config      *cfg; 
    7373    pj_ioqueue_t        *ioqueue; 
    7474    pj_timer_heap_t     *timer_heap; 
     
    166166    tu->type = type; 
    167167    tu->pf = si->pf; 
    168     tu->endpt = si->endpt; 
     168    tu->cfg = si->cfg; 
    169169    tu->ioqueue = si->ioqueue; 
    170170    tu->timer_heap = si->timer_heap; 
     
    198198    sess_cb.on_send_msg = &tu_sess_on_send_msg; 
    199199    sess_cb.on_rx_request = &tu_sess_on_rx_request; 
    200     status = pj_stun_session_create(si->endpt, "turns%p", &sess_cb, PJ_FALSE, 
     200    status = pj_stun_session_create(si->cfg, "turns%p", &sess_cb, PJ_FALSE, 
    201201                                    &tu->default_session); 
    202202    if (status != PJ_SUCCESS) { 
     
    208208    sd->tu = tu; 
    209209    pj_stun_session_set_user_data(tu->default_session, sd); 
     210 
     211    pj_stun_session_set_server_name(tu->default_session, NULL); 
    210212 
    211213    /* Create mutex */ 
     
    621623    sess_cb.on_rx_request = &client_sess_on_rx_msg; 
    622624    sess_cb.on_rx_indication = &client_sess_on_rx_msg; 
    623     status = pj_stun_session_create(tu->endpt, client->obj_name,  
     625    status = pj_stun_session_create(tu->cfg, client->obj_name,  
    624626                                    &sess_cb, PJ_FALSE, 
    625627                                    &client->session); 
Note: See TracChangeset for help on using the changeset viewer.