Ignore:
Timestamp:
Apr 26, 2013 6:01:43 AM (11 years ago)
Author:
bennylp
Message:

Fixed #1661: Option to use SO_REUSEADDR for TCP and TLS listeners and use it by default on non-Windows platforms

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/include/pjsip/sip_transport_tls.h

    r4262 r4506  
    175175 
    176176    /** 
     177     * Should SO_REUSEADDR be used for the listener socket. 
     178     * Default value is PJSIP_TLS_TRANSPORT_REUSEADDR. 
     179     */ 
     180    pj_bool_t reuse_addr; 
     181 
     182    /** 
    177183     * QoS traffic type to be set on this transport. When application wants 
    178184     * to apply QoS tagging to the transport, it's preferable to set this 
     
    226232{ 
    227233    pj_memset(tls_opt, 0, sizeof(*tls_opt)); 
     234    tls_opt->reuse_addr = PJSIP_TLS_TRANSPORT_REUSEADDR; 
    228235    tls_opt->qos_type = PJ_QOS_TYPE_BEST_EFFORT; 
    229236    tls_opt->qos_ignore_error = PJ_TRUE; 
Note: See TracChangeset for help on using the changeset viewer.