Changeset 4860 for pjproject/trunk/pjsip/src/pjsip/sip_transport_tcp.c
- Timestamp:
- Jun 19, 2014 5:07:12 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip/sip_transport_tcp.c
r4817 r4860 61 61 pj_qos_type qos_type; 62 62 pj_qos_params qos_params; 63 pj_sockopt_params sockopt_params; 63 64 }; 64 65 … … 285 286 pj_memcpy(&listener->qos_params, &cfg->qos_params, 286 287 sizeof(cfg->qos_params)); 288 pj_memcpy(&listener->sockopt_params, &cfg->sockopt_params, 289 sizeof(cfg->sockopt_params)); 287 290 288 291 pj_ansi_strcpy(listener->factory.obj_name, "tcplis"); … … 316 319 } 317 320 } 321 322 /* Apply socket options, if specified */ 323 if (cfg->sockopt_params.cnt) 324 status = pj_sock_setsockopt_params(sock, &cfg->sockopt_params); 318 325 319 326 /* Bind address may be different than factory.local_addr because … … 918 925 2, listener->factory.obj_name, 919 926 "outgoing SIP TCP socket"); 927 928 /* Apply socket options, if specified */ 929 if (listener->sockopt_params.cnt) 930 status = pj_sock_setsockopt_params(sock, &listener->sockopt_params); 931 920 932 921 933 /* Bind to listener's address and any port */ … … 1036 1048 2, listener->factory.obj_name, 1037 1049 "incoming SIP TCP socket"); 1050 1051 /* Apply socket options, if specified */ 1052 if (listener->sockopt_params.cnt) 1053 status = pj_sock_setsockopt_params(sock, &listener->sockopt_params); 1038 1054 1039 1055 /* tcp_create() expect pj_sockaddr, so copy src_addr to temporary var,
Note: See TracChangeset
for help on using the changeset viewer.