Ignore:
Timestamp:
Jun 19, 2014 5:07:12 AM (7 years ago)
Author:
riza
Message:

Re #1771: Implement run-time configuration to set specific socket option.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_core.c

    r4735 r4860  
    19651965                                2, THIS_FILE, "SIP UDP socket"); 
    19661966 
     1967    /* Apply sockopt, if specified */ 
     1968    if (cfg->sockopt_params.cnt) 
     1969        status = pj_sock_setsockopt_params(sock, &cfg->sockopt_params); 
     1970 
    19671971    /* Bind socket */ 
    19681972    status = pj_sock_bind(sock, &bind_addr, pj_sockaddr_get_len(&bind_addr)); 
     
    21872191                  sizeof(cfg->qos_params)); 
    21882192 
     2193        /* Copy the sockopt */ 
     2194        pj_memcpy(&tcp_cfg.sockopt_params, &cfg->sockopt_params, 
     2195                  sizeof(tcp_cfg.sockopt_params)); 
     2196         
    21892197        /* Create the TCP transport */ 
    21902198        status = pjsip_tcp_transport_start3(pjsua_var.endpt, &tcp_cfg, &tcp); 
Note: See TracChangeset for help on using the changeset viewer.