Home
last modified time | relevance | path

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

12

/third_party/node/deps/cares/src/lib/
Dares_getsock.c26 int sockindex=0; in ares_getsock() local
41 if(sockindex >= numsocks || sockindex >= ARES_GETSOCK_MAXNUM) in ares_getsock()
43 socks[sockindex] = server->udp_socket; in ares_getsock()
44 bitmap |= ARES_GETSOCK_READABLE(setbits, sockindex); in ares_getsock()
45 sockindex++; in ares_getsock()
53 if(sockindex >= numsocks || sockindex >= ARES_GETSOCK_MAXNUM) in ares_getsock()
55 socks[sockindex] = server->tcp_socket; in ares_getsock()
56 bitmap |= ARES_GETSOCK_READABLE(setbits, sockindex); in ares_getsock()
60 bitmap |= ARES_GETSOCK_WRITABLE(setbits, sockindex); in ares_getsock()
62 sockindex++; in ares_getsock()
/third_party/curl/lib/vtls/
Dmesalink.c93 struct connectdata *conn, int sockindex) in mesalink_connect_step1() argument
96 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in mesalink_connect_step1()
105 curl_socket_t sockfd = conn->sock[sockindex]; in mesalink_connect_step1()
265 &ssl_sessionid, NULL, sockindex)) { in mesalink_connect_step1()
293 struct connectdata *conn, int sockindex) in mesalink_connect_step2() argument
296 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in mesalink_connect_step2()
298 conn->recv[sockindex] = mesalink_recv; in mesalink_connect_step2()
299 conn->send[sockindex] = mesalink_send; in mesalink_connect_step2()
337 mesalink_connect_step3(struct connectdata *conn, int sockindex) in mesalink_connect_step3() argument
340 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in mesalink_connect_step3()
[all …]
Dgskit.c502 static void cancel_async_handshake(struct connectdata *conn, int sockindex) in cancel_async_handshake() argument
504 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in cancel_async_handshake()
507 if(QsoCancelOperation(conn->sock[sockindex], 0) > 0) in cancel_async_handshake()
518 static int pipe_ssloverssl(struct connectdata *conn, int sockindex, in pipe_ssloverssl() argument
522 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in pipe_ssloverssl()
523 struct ssl_connect_data *connproxyssl = &conn->proxy_ssl[sockindex]; in pipe_ssloverssl()
545 FD_SET(conn->sock[sockindex], &fds_write); in pipe_ssloverssl()
546 if(n < conn->sock[sockindex]) in pipe_ssloverssl()
547 n = conn->sock[sockindex]; in pipe_ssloverssl()
576 FD_ISSET(conn->sock[sockindex], &fds_write)) { in pipe_ssloverssl()
[all …]
Dvtls.c300 ssl_connect_init_proxy(struct connectdata *conn, int sockindex) in ssl_connect_init_proxy() argument
302 DEBUGASSERT(conn->bits.proxy_ssl_connected[sockindex]); in ssl_connect_init_proxy()
303 if(ssl_connection_complete == conn->ssl[sockindex].state && in ssl_connect_init_proxy()
304 !conn->proxy_ssl[sockindex].use) { in ssl_connect_init_proxy()
312 pbdata = conn->proxy_ssl[sockindex].backend; in ssl_connect_init_proxy()
313 conn->proxy_ssl[sockindex] = conn->ssl[sockindex]; in ssl_connect_init_proxy()
315 memset(&conn->ssl[sockindex], 0, sizeof(conn->ssl[sockindex])); in ssl_connect_init_proxy()
318 conn->ssl[sockindex].backend = pbdata; in ssl_connect_init_proxy()
326 int sockindex) in Curl_ssl_connect() argument
331 if(conn->bits.proxy_ssl_connected[sockindex]) { in Curl_ssl_connect()
[all …]
Dbearssl.c298 struct connectdata *conn, int sockindex) in bearssl_connect_step1() argument
300 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in bearssl_connect_step1()
374 &session, NULL, sockindex)) { in bearssl_connect_step1()
429 struct connectdata *conn, int sockindex, in bearssl_run_until() argument
432 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in bearssl_run_until()
434 curl_socket_t sockfd = conn->sock[sockindex]; in bearssl_run_until()
507 struct connectdata *conn, int sockindex) in bearssl_connect_step2() argument
509 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in bearssl_connect_step2()
513 ret = bearssl_run_until(data, conn, sockindex, in bearssl_connect_step2()
528 struct connectdata *conn, int sockindex) in bearssl_connect_step3() argument
[all …]
Dmbedtls.c204 int sockindex) in set_ssl_version_min_max() argument
206 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in set_ssl_version_min_max()
249 int sockindex) in mbed_connect_step1() argument
251 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in mbed_connect_step1()
438 CURLcode result = set_ssl_version_min_max(data, conn, sockindex); in mbed_connect_step1()
452 mbedtls_ssl_set_bio(&backend->ssl, &conn->sock[sockindex], in mbed_connect_step1()
477 &old_session, NULL, sockindex)) { in mbed_connect_step1()
555 int sockindex) in mbed_connect_step2() argument
558 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in mbed_connect_step2()
563 conn->recv[sockindex] = mbed_recv; in mbed_connect_step2()
[all …]
Drustls.c64 cr_data_pending(const struct connectdata *conn, int sockindex) in cr_data_pending() argument
66 const struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in cr_data_pending()
74 int sockindex UNUSED_PARAM) in cr_connect()
115 cr_recv(struct Curl_easy *data, int sockindex, in cr_recv() argument
119 struct ssl_connect_data *const connssl = &conn->ssl[sockindex]; in cr_recv()
130 &conn->sock[sockindex], &tls_bytes_read); in cr_recv()
208 cr_send(struct Curl_easy *data, int sockindex, in cr_send() argument
212 struct ssl_connect_data *const connssl = &conn->ssl[sockindex]; in cr_send()
240 &conn->sock[sockindex], &tlswritten); in cr_send()
384 int sockindex, bool *done) in cr_connect_nonblocking() argument
[all …]
Dwolfssl.c211 int sockindex) in wolfssl_connect_step1() argument
214 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in wolfssl_connect_step1()
217 curl_socket_t sockfd = conn->sock[sockindex]; in wolfssl_connect_step1()
494 &ssl_sessionid, NULL, sockindex)) { in wolfssl_connect_step1()
519 int sockindex) in wolfssl_connect_step2() argument
522 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in wolfssl_connect_step2()
528 conn->recv[sockindex] = wolfssl_recv; in wolfssl_connect_step2()
529 conn->send[sockindex] = wolfssl_send; in wolfssl_connect_step2()
722 int sockindex) in wolfssl_connect_step3() argument
725 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in wolfssl_connect_step3()
[all …]
Dvtls.h52 int sockindex);
62 struct connectdata *conn, int sockindex);
64 struct connectdata *conn, int sockindex,
76 int sockindex);
90 int sockindex);
91 void (*disassociate_connection)(struct Curl_easy *data, int sockindex);
101 int sockindex);
193 int sockindex);
197 int sockindex,
203 int sockindex);
[all …]
Dgtls.c199 int sockindex, in handshake() argument
203 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in handshake()
206 curl_socket_t sockfd = conn->sock[sockindex]; in handshake()
386 int sockindex) in gtls_connect_step1() argument
388 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in gtls_connect_step1()
701 if(conn->proxy_ssl[sockindex].use) { in gtls_connect_step1()
702 transport_ptr = conn->proxy_ssl[sockindex].backend->session; in gtls_connect_step1()
710 transport_ptr = &conn->sock[sockindex]; in gtls_connect_step1()
739 &ssl_sessionid, &ssl_idsize, sockindex)) { in gtls_connect_step1()
816 int sockindex) in gtls_connect_step3() argument
[all …]
Dschannel.c150 struct connectdata *conn, int sockindex,
419 int sockindex) in schannel_acquire_credential_handle() argument
421 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in schannel_acquire_credential_handle()
754 int sockindex) in schannel_connect_step1() argument
757 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in schannel_connect_step1()
837 (void **)&old_cred, NULL, sockindex)) { in schannel_connect_step1()
851 result = schannel_acquire_credential_handle(data, conn, sockindex); in schannel_connect_step1()
994 result = Curl_write_plain(data, conn->sock[sockindex], outbuf.pvBuffer, in schannel_connect_step1()
1019 int sockindex) in schannel_connect_step2() argument
1023 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in schannel_connect_step2()
[all …]
Dnss.c693 int sockindex, char *key_file) in nss_load_key() argument
700 (void)sockindex; /* unused */ in nss_load_key()
744 int sockindex, char *cert_file, char *key_file) in cert_stuff() argument
749 result = nss_load_cert(&conn->ssl[sockindex], cert_file, PR_FALSE); in cert_stuff()
763 result = nss_load_key(data, conn, sockindex, key_file); in cert_stuff()
766 result = nss_load_key(data, conn, sockindex, cert_file); in cert_stuff()
1589 int sockindex) in nss_close() argument
1591 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in nss_close()
1593 struct ssl_connect_data *connssl_proxy = &conn->proxy_ssl[sockindex]; in nss_close()
1605 fake_sclose(conn->sock[sockindex]); in nss_close()
[all …]
Dsectransp.c1369 int sockindex) in set_ssl_version_min_max() argument
1371 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in set_ssl_version_min_max()
1660 int sockindex) argument
1662 curl_socket_t sockfd = conn->sock[sockindex];
1663 struct ssl_connect_data *connssl = &conn->ssl[sockindex];
1745 CURLcode result = set_ssl_version_min_max(data, conn, sockindex);
1782 CURLcode result = set_ssl_version_min_max(data, conn, sockindex);
2081 &ssl_sessionid_len, sockindex)) {
2110 ssl_sessionid_len, sockindex);
2531 int sockindex) argument
[all …]
Dopenssl.c245 int sockindex);
1425 int sockindex) in ossl_close() argument
1427 ossl_closeone(data, conn, &conn->ssl[sockindex]); in ossl_close()
1429 ossl_closeone(data, conn, &conn->proxy_ssl[sockindex]); in ossl_close()
1438 struct connectdata *conn, int sockindex) in ossl_shutdown() argument
1441 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in ossl_shutdown()
1465 int what = SOCKET_READABLE(conn->sock[sockindex], in ossl_shutdown()
2388 struct connectdata *conn, int sockindex) in set_ssl_version_min_max_legacy() argument
2399 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in set_ssl_version_min_max_legacy()
2404 (void)sockindex; in set_ssl_version_min_max_legacy()
[all …]
/third_party/curl/lib/
Dhttp_proxy.c55 static CURLcode https_proxy_connect(struct Curl_easy *data, int sockindex) in https_proxy_connect() argument
61 if(!conn->bits.proxy_ssl_connected[sockindex]) { in https_proxy_connect()
64 Curl_ssl_connect_nonblocking(data, conn, TRUE, sockindex, in https_proxy_connect()
65 &conn->bits.proxy_ssl_connected[sockindex]); in https_proxy_connect()
74 (void) sockindex; in https_proxy_connect()
79 CURLcode Curl_proxy_connect(struct Curl_easy *data, int sockindex) in Curl_proxy_connect() argument
83 const CURLcode result = https_proxy_connect(data, sockindex); in Curl_proxy_connect()
86 if(!conn->bits.proxy_ssl_connected[sockindex]) in Curl_proxy_connect()
105 else if(sockindex == SECONDARYSOCKET) in Curl_proxy_connect()
110 if(sockindex == SECONDARYSOCKET) in Curl_proxy_connect()
[all …]
Dsocks.h46 int sockindex);
54 int sockindex,
66 int sockindex,
74 CURLcode Curl_SOCKS5_gssapi_negotiate(int sockindex,
Dconnect.c576 int sockindex, in trynextip() argument
588 if(sockindex == FIRSTSOCKET) { in trynextip()
774 static CURLcode connect_SOCKS(struct Curl_easy *data, int sockindex, in connect_SOCKS() argument
790 sockindex == SECONDARYSOCKET ? in connect_SOCKS()
794 sockindex == SECONDARYSOCKET ? conn->secondary_port : in connect_SOCKS()
801 host, port, sockindex, data, done); in connect_SOCKS()
806 pxresult = Curl_SOCKS4(conn->socks_proxy.user, host, port, sockindex, in connect_SOCKS()
822 (void)sockindex; in connect_SOCKS()
835 int sockindex, in post_SOCKS() argument
838 conn->bits.tcpconnect[sockindex] = TRUE; in post_SOCKS()
[all …]
Dquic.h41 int sockindex,
46 int sockindex,
Dcurl_rtmp.c299 static ssize_t rtmp_recv(struct Curl_easy *data, int sockindex, char *buf, in rtmp_recv() argument
306 (void)sockindex; /* unused */ in rtmp_recv()
321 static ssize_t rtmp_send(struct Curl_easy *data, int sockindex, in rtmp_send() argument
328 (void)sockindex; /* unused */ in rtmp_send()
Dconnect.h32 int sockindex,
154 bool Curl_conn_data_pending(struct connectdata *conn, int sockindex);
Dtransfer.c1353 unsigned sockindex = 0; in Curl_single_getsock() local
1363 bitmap |= GETSOCK_READSOCK(sockindex); in Curl_single_getsock()
1364 sock[sockindex] = conn->sockfd; in Curl_single_getsock()
1375 sockindex++; /* increase index if we need two entries */ in Curl_single_getsock()
1379 sock[sockindex] = conn->writesockfd; in Curl_single_getsock()
1382 bitmap |= GETSOCK_WRITESOCK(sockindex); in Curl_single_getsock()
1925 int sockindex, /* socket index to read from or -1 */ in Curl_setup_transfer() argument
1938 DEBUGASSERT((sockindex <= 1) && (sockindex >= -1)); in Curl_setup_transfer()
1942 conn->sockfd = sockindex == -1 ? in Curl_setup_transfer()
1944 conn->sock[sockindex]; in Curl_setup_transfer()
[all …]
Dsocks.c158 int sockindex) in Curl_SOCKS_getsock() argument
161 sock[0] = conn->sock[sockindex]; in Curl_SOCKS_getsock()
191 int sockindex, in Curl_SOCKS4() argument
200 curl_socket_t sockfd = conn->sock[sockindex]; in Curl_SOCKS4()
490 int sockindex, in Curl_SOCKS5() argument
517 curl_socket_t sockfd = conn->sock[sockindex]; in Curl_SOCKS5()
633 result = Curl_SOCKS5_gssapi_negotiate(sockindex, data); in Curl_SOCKS5()
/third_party/curl/lib/vquic/
Dquiche.c177 int sockindex, in Curl_quic_connect() argument
181 struct quicsocket *qs = &conn->hequic[sockindex]; in Curl_quic_connect()
288 int sockindex, in quiche_has_connected() argument
294 conn->recv[sockindex] = h3_stream_recv; in quiche_has_connected()
295 conn->send[sockindex] = h3_stream_send; in quiche_has_connected()
330 int sockindex, in Curl_quic_is_connected() argument
334 struct quicsocket *qs = &conn->hequic[sockindex]; in Curl_quic_is_connected()
335 curl_socket_t sockfd = conn->tempsock[sockindex]; in Curl_quic_is_connected()
347 result = quiche_has_connected(conn, 0, sockindex); in Curl_quic_is_connected()
475 int sockindex, in h3_stream_recv() argument
[all …]
Dngtcp2.c757 int sockindex, in Curl_quic_connect() argument
765 struct quicsocket *qs = &conn->hequic[sockindex]; in Curl_quic_connect()
771 Curl_quic_disconnect(data, conn, sockindex); in Curl_quic_connect()
1236 int sockindex, in ngh3_stream_recv() argument
1242 curl_socket_t sockfd = conn->sock[sockindex]; in ngh3_stream_recv()
1624 int sockindex, in ngh3_stream_send() argument
1632 curl_socket_t sockfd = conn->sock[sockindex]; in ngh3_stream_send()
1683 int sockindex, in Curl_quic_is_connected() argument
1687 struct quicsocket *qs = &conn->hequic[sockindex]; in Curl_quic_is_connected()
1688 curl_socket_t sockfd = conn->tempsock[sockindex]; in Curl_quic_is_connected()
[all …]
/third_party/curl/lib/vssh/
Dwolfssh.c216 static ssize_t wscp_send(struct Curl_easy *data, int sockindex, in wscp_send() argument
221 (void)sockindex; /* we only support SCP on the fixed known primary socket */ in wscp_send()
229 static ssize_t wscp_recv(struct Curl_easy *data, int sockindex, in wscp_recv() argument
234 (void)sockindex; /* we only support SCP on the fixed known primary socket */ in wscp_recv()
243 static ssize_t wsftp_send(struct Curl_easy *data, int sockindex, in wsftp_send() argument
250 (void)sockindex; in wsftp_send()
287 static ssize_t wsftp_recv(struct Curl_easy *data, int sockindex, in wsftp_recv() argument
294 (void)sockindex; in wsftp_recv()

12