Ignore:
Timestamp:
Apr 14, 2010 6:57:35 AM (14 years ago)
Author:
nanang
Message:

Ticket #1056:

  • Added functions to set/unset transport state notification callback on specific transport.
  • Updated transaction to immediately terminate the transactions when their transport gets disconnected.
  • Minor update: renamed function pjsip_tpmgr_set/get_status_cb() to pjsip_tpmgr_set/get_state_cb().
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_transport_tcp.c

    r3128 r3138  
    185185 
    186186    /* Notify application of transport disconnected state */ 
    187     state_cb = pjsip_tpmgr_get_status_cb(tcp->base.tpmgr); 
     187    state_cb = pjsip_tpmgr_get_state_cb(tcp->base.tpmgr); 
    188188    if (state_cb) { 
    189189        pjsip_transport_state_info state_info; 
     
    10101010 
    10111011            /* Notify application of transport state accepted */ 
    1012             state_cb = pjsip_tpmgr_get_status_cb(tcp->base.tpmgr); 
     1012            state_cb = pjsip_tpmgr_get_state_cb(tcp->base.tpmgr); 
    10131013            if (state_cb) { 
    10141014                pjsip_transport_state_info state_info; 
     
    13371337 
    13381338    /* Notify application of transport state connected */ 
    1339     state_cb = pjsip_tpmgr_get_status_cb(tcp->base.tpmgr); 
     1339    state_cb = pjsip_tpmgr_get_state_cb(tcp->base.tpmgr); 
    13401340    if (state_cb) { 
    13411341        pjsip_transport_state_info state_info; 
Note: See TracChangeset for help on using the changeset viewer.