Home
last modified time | relevance | path

Searched refs:sockindex (Results 1 – 25 of 46) sorted by relevance

12

/third_party/curl/lib/
Dcfilters.h211 int sockindex; /* the index the filter is installed at */ member
263 int sockindex,
296 int sockindex);
337 CURLcode Curl_conn_connect(struct Curl_easy *data, int sockindex,
344 bool Curl_conn_is_connected(struct connectdata *conn, int sockindex);
351 bool Curl_conn_is_ip_connected(struct Curl_easy *data, int sockindex);
358 bool Curl_conn_is_ssl(struct connectdata *conn, int sockindex);
363 bool Curl_conn_is_multiplex(struct connectdata *conn, int sockindex);
369 void Curl_conn_close(struct Curl_easy *data, int sockindex);
376 int sockindex);
[all …]
Dcfilters.c242 cf->sockindex = index; in Curl_conn_cf_add()
260 cf_new->sockindex = cf_at->sockindex; in Curl_conn_cf_insert_after()
328 int sockindex, in Curl_conn_connect() argument
338 cf = data->conn->cfilter[sockindex]; in Curl_conn_connect()
359 bool Curl_conn_is_connected(struct connectdata *conn, int sockindex) in Curl_conn_is_connected() argument
363 cf = conn->cfilter[sockindex]; in Curl_conn_is_connected()
367 bool Curl_conn_is_ip_connected(struct Curl_easy *data, int sockindex) in Curl_conn_is_ip_connected() argument
371 cf = data->conn->cfilter[sockindex]; in Curl_conn_is_ip_connected()
393 bool Curl_conn_is_ssl(struct connectdata *conn, int sockindex) in Curl_conn_is_ssl() argument
395 return conn? Curl_conn_cf_is_ssl(conn->cfilter[sockindex]) : FALSE; in Curl_conn_is_ssl()
[all …]
Dhttp2.h49 int sockindex);
52 int sockindex);
55 struct connectdata *conn, int sockindex);
60 struct connectdata *conn, int sockindex,
Dkrb5.c466 socket_read(struct Curl_easy *data, int sockindex, void *to, size_t len) in socket_read() argument
473 nread = Curl_conn_recv(data, sockindex, to_p, len, &result); in socket_read()
492 socket_write(struct Curl_easy *data, int sockindex, const void *to, in socket_write() argument
500 written = Curl_conn_send(data, sockindex, to_p, len, &result); in socket_write()
514 static CURLcode read_data(struct Curl_easy *data, int sockindex, in read_data() argument
522 result = socket_read(data, sockindex, &len, sizeof(len)); in read_data()
537 result = socket_read(data, sockindex, buf->data, len); in read_data()
560 static ssize_t sec_recv(struct Curl_easy *data, int sockindex, in sec_recv() argument
571 return Curl_conn_recv(data, sockindex, buffer, len, err); in sec_recv()
584 if(read_data(data, sockindex, &conn->in_buffer)) in sec_recv()
[all …]
Dcf-socket.c895 if(ctx->sock == cf->conn->sock[cf->sockindex]) in cf_socket_close()
896 cf->conn->sock[cf->sockindex] = CURL_SOCKET_BAD; in cf_socket_close()
899 if(ctx->active && cf->sockindex == FIRSTSOCKET) in cf_socket_close()
1283 fdsave = cf->conn->sock[cf->sockindex]; in cf_socket_send()
1284 cf->conn->sock[cf->sockindex] = ctx->sock; in cf_socket_send()
1295 cf->conn->sock[cf->sockindex] = fdsave; in cf_socket_send()
1348 cf->conn->sock[cf->sockindex] = fdsave; in cf_socket_send()
1361 fdsave = cf->conn->sock[cf->sockindex]; in cf_socket_recv()
1362 cf->conn->sock[cf->sockindex] = ctx->sock; in cf_socket_recv()
1373 cf->conn->sock[cf->sockindex] = fdsave; in cf_socket_recv()
[all …]
Dconnect.c472 wcf->sockindex = cf->sockindex; in baller_initiate()
527 if(cf->sockindex == FIRSTSOCKET) { in baller_start_next()
1220 && !Curl_conn_is_ssl(cf->conn, cf->sockindex)) { in cf_setup_connect()
1243 if(Curl_conn_is_ssl(cf->conn, cf->sockindex)) { in cf_setup_connect()
1263 && !Curl_conn_is_ssl(cf->conn, cf->sockindex)) { /* it is missing */ in cf_setup_connect()
1357 int sockindex, in cf_setup_add() argument
1369 Curl_conn_cf_add(data, conn, sockindex, cf); in cf_setup_add()
1409 int sockindex, in Curl_conn_setup() argument
1419 if(!conn->cfilter[sockindex] && in Curl_conn_setup()
1422 result = Curl_cf_https_setup(data, conn, sockindex, remotehost); in Curl_conn_setup()
[all …]
Dcf-https-connect.h40 int sockindex,
53 int sockindex,
Dcurl_rtmp.c301 static ssize_t rtmp_recv(struct Curl_easy *data, int sockindex, char *buf, in rtmp_recv() argument
308 (void)sockindex; /* unused */ in rtmp_recv()
323 static ssize_t rtmp_send(struct Curl_easy *data, int sockindex, in rtmp_send() argument
330 (void)sockindex; /* unused */ in rtmp_send()
Dcf-socket.h140 int sockindex,
148 int sockindex,
Dcf-https-connect.c481 int sockindex, in cf_http_connect_add() argument
492 Curl_conn_cf_add(data, conn, sockindex, cf); in cf_http_connect_add()
499 int sockindex, in Curl_cf_https_setup() argument
505 (void)sockindex; in Curl_cf_https_setup()
525 result = cf_http_connect_add(data, conn, sockindex, remotehost, in Curl_cf_https_setup()
Dsendf.c154 int sockindex, in Curl_nwrite() argument
163 DEBUGASSERT(sockindex >= 0 && sockindex < 2); in Curl_nwrite()
180 nwritten = conn->send[sockindex](data, sockindex, buf, blen, &result); in Curl_nwrite()
Dtransfer.c1594 int sockindex, /* socket index to read from or -1 */ in Curl_setup_transfer() argument
1607 DEBUGASSERT((sockindex <= 1) && (sockindex >= -1)); in Curl_setup_transfer()
1614 conn->sockfd = sockindex == -1 ? in Curl_setup_transfer()
1616 conn->sock[sockindex]; in Curl_setup_transfer()
1623 conn->sockfd = sockindex == -1 ? in Curl_setup_transfer()
1624 CURL_SOCKET_BAD : conn->sock[sockindex]; in Curl_setup_transfer()
1644 if(sockindex != -1) in Curl_setup_transfer()
Dsocks.c122 if(SOCKET_READABLE(cf->conn->sock[cf->sockindex], timeout_ms) <= 0) { in Curl_blockread_all()
1135 int sockindex = cf->sockindex; in socks_proxy_cf_connect() local
1164 sockindex == SECONDARYSOCKET ? in socks_proxy_cf_connect()
1168 sockindex == SECONDARYSOCKET ? conn->secondary_port : in socks_proxy_cf_connect()
Dhttp2.c2614 int sockindex) in http2_cfilter_add() argument
2629 Curl_conn_cf_add(data, conn, sockindex, cf); in http2_cfilter_add()
2679 int sockindex) in Curl_conn_is_http2() argument
2681 return conn? Curl_cf_is_http2(conn->cfilter[sockindex], data) : FALSE; in Curl_conn_is_http2()
2686 int sockindex) in Curl_http2_may_switch() argument
2688 (void)sockindex; in Curl_http2_may_switch()
2689 if(!Curl_conn_is_http2(data, conn, sockindex) && in Curl_http2_may_switch()
2705 struct connectdata *conn, int sockindex) in Curl_http2_switch() argument
2710 DEBUGASSERT(!Curl_conn_is_http2(data, conn, sockindex)); in Curl_http2_switch()
2713 result = http2_cfilter_add(&cf, data, conn, sockindex); in Curl_http2_switch()
[all …]
Dhttp_proxy.c64 else if(cf->sockindex == SECONDARYSOCKET) in Curl_http_proxy_get_destination()
69 if(cf->sockindex == SECONDARYSOCKET) in Curl_http_proxy_get_destination()
/third_party/node/deps/cares/src/lib/
Dares_getsock.c36 size_t sockindex = 0; in ares_getsock() local
60 if (sockindex >= (size_t)numsocks || sockindex >= ARES_GETSOCK_MAXNUM) { in ares_getsock()
71 socks[sockindex] = conn->fd; in ares_getsock()
74 bitmap |= ARES_GETSOCK_READABLE(setbits, sockindex); in ares_getsock()
79 bitmap |= ARES_GETSOCK_WRITABLE(setbits, sockindex); in ares_getsock()
82 sockindex++; in ares_getsock()
/third_party/curl/lib/vtls/
Dvtls.h188 int sockindex);
194 int sockindex);
215 void *Curl_ssl_get_internals(struct Curl_easy *data, int sockindex,
/third_party/curl/lib/vssh/
Dwolfssh.c220 static ssize_t wscp_send(struct Curl_easy *data, int sockindex, in wscp_send() argument
225 (void)sockindex; /* we only support SCP on the fixed known primary socket */ in wscp_send()
233 static ssize_t wscp_recv(struct Curl_easy *data, int sockindex, in wscp_recv() argument
238 (void)sockindex; /* we only support SCP on the fixed known primary socket */ in wscp_recv()
247 static ssize_t wsftp_send(struct Curl_easy *data, int sockindex, in wsftp_send() argument
254 (void)sockindex; in wsftp_send()
291 static ssize_t wsftp_recv(struct Curl_easy *data, int sockindex, in wsftp_recv() argument
298 (void)sockindex; in wsftp_recv()
/third_party/curl/lib/vquic/
Dcurl_msh3.c730 cf->conn->sock[cf->sockindex] = ctx->sock[SP_LOCAL]; in cf_msh3_active()
732 if(cf->sockindex == FIRSTSOCKET) { in cf_msh3_active()
942 if(ctx->sock[SP_LOCAL] == cf->conn->sock[cf->sockindex]) { in cf_msh3_close()
945 cf->conn->sock[cf->sockindex] = CURL_SOCKET_BAD; in cf_msh3_close()
952 if(cf->sockindex == FIRSTSOCKET) in cf_msh3_close()
1078 int sockindex) in Curl_conn_is_msh3() argument
1080 struct Curl_cfilter *cf = conn? conn->cfilter[sockindex] : NULL; in Curl_conn_is_msh3()
Dvquic.c631 int sockindex) in Curl_conn_is_http3() argument
634 return Curl_conn_is_ngtcp2(data, conn, sockindex); in Curl_conn_is_http3()
636 return Curl_conn_is_osslq(data, conn, sockindex); in Curl_conn_is_http3()
638 return Curl_conn_is_quiche(data, conn, sockindex); in Curl_conn_is_http3()
640 return Curl_conn_is_msh3(data, conn, sockindex); in Curl_conn_is_http3()
Dcurl_msh3.h42 int sockindex);
Dcurl_quiche.h46 int sockindex);
Dcurl_osslq.h48 int sockindex);
Dcurl_ngtcp2.h58 int sockindex);
Dvquic.h51 int sockindex);

12