Ignore:
Timestamp:
Feb 25, 2010 11:58:19 AM (12 years ago)
Author:
nanang
Message:

More ticket #1032:

  • Updated transport state notification callback to return void.
  • Updated transport state enum to only contain connected and disconnected, no more bitmask value.
  • Added direction field to SIP transport.
  • Removed remote hostname hash from transport key.
  • Updated cert info dump to return -1 when buffer is insufficient.
  • Added new error code PJSIP_TLS_ECERTVERIF.
  • Updated get_cert_name() in ssl_sock_symbian.c to use heap buffer instead of stack.
  • Minors, e.g: added prefix PJ in cipher types, docs.
File:
1 edited

Legend:

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

    r3106 r3110  
    585585    sockaddr_to_host_port(pool, &tcp->base.local_name, local); 
    586586    sockaddr_to_host_port(pool, &tcp->base.remote_name, remote); 
     587    tcp->base.dir = is_server? PJSIP_TP_DIR_INCOMING : PJSIP_TP_DIR_OUTGOING; 
    587588 
    588589    tcp->base.endpt = listener->endpt; 
     
    10051006             
    10061007                pj_bzero(&state_info, sizeof(state_info)); 
    1007                 (*state_cb)(&tcp->base, PJSIP_TP_STATE_ACCEPTED, &state_info); 
     1008                (*state_cb)(&tcp->base, PJSIP_TP_STATE_CONNECTED, &state_info); 
    10081009            } 
    10091010        } 
Note: See TracChangeset for help on using the changeset viewer.