Lines Matching refs:optval
180 int optval = data->set.tcp_keepalive ? 1 : 0; in tcpkeepalive() local
184 (void *)&optval, sizeof(optval)) < 0) { in tcpkeepalive()
193 optval = curlx_sltosi(data->set.tcp_keepidle); in tcpkeepalive()
194 KEEPALIVE_FACTOR(optval); in tcpkeepalive()
196 (const char *)&optval, sizeof(optval)) < 0) { in tcpkeepalive()
201 optval = curlx_sltosi(data->set.tcp_keepintvl); in tcpkeepalive()
202 KEEPALIVE_FACTOR(optval); in tcpkeepalive()
204 (const char *)&optval, sizeof(optval)) < 0) { in tcpkeepalive()
209 optval = curlx_sltosi(data->set.tcp_keepcnt); in tcpkeepalive()
211 (const char *)&optval, sizeof(optval)) < 0) { in tcpkeepalive()
220 optval = curlx_sltosi(data->set.tcp_keepidle); in tcpkeepalive()
221 KEEPALIVE_FACTOR(optval); in tcpkeepalive()
222 vals.keepalivetime = (u_long)optval; in tcpkeepalive()
223 optval = curlx_sltosi(data->set.tcp_keepintvl); in tcpkeepalive()
224 KEEPALIVE_FACTOR(optval); in tcpkeepalive()
225 vals.keepaliveinterval = (u_long)optval; in tcpkeepalive()
234 optval = curlx_sltosi(data->set.tcp_keepidle); in tcpkeepalive()
235 KEEPALIVE_FACTOR(optval); in tcpkeepalive()
237 (void *)&optval, sizeof(optval)) < 0) { in tcpkeepalive()
244 optval = curlx_sltosi(data->set.tcp_keepidle); in tcpkeepalive()
245 KEEPALIVE_FACTOR(optval); in tcpkeepalive()
247 (void *)&optval, sizeof(optval)) < 0) { in tcpkeepalive()
254 optval = curlx_sltosi(data->set.tcp_keepidle); in tcpkeepalive()
255 KEEPALIVE_FACTOR(optval); in tcpkeepalive()
257 (void *)&optval, sizeof(optval)) < 0) { in tcpkeepalive()
264 optval = curlx_sltosi(data->set.tcp_keepintvl); in tcpkeepalive()
265 KEEPALIVE_FACTOR(optval); in tcpkeepalive()
267 (void *)&optval, sizeof(optval)) < 0) { in tcpkeepalive()
284 optval = curlx_sltosi(data->set.tcp_keepcnt) * in tcpkeepalive()
286 KEEPALIVE_FACTOR(optval); in tcpkeepalive()
288 (void *)&optval, sizeof(optval)) < 0) { in tcpkeepalive()
294 optval = curlx_sltosi(data->set.tcp_keepcnt); in tcpkeepalive()
296 (void *)&optval, sizeof(optval)) < 0) { in tcpkeepalive()
1248 int optval = 1; in do_connect() local
1279 (void *)&optval, sizeof(optval)) < 0) in do_connect()