/external/curl/lib/ |
D | curl_rtmp.c | 202 r->m_sb.sb_socket = conn->sock[FIRSTSOCKET]; in rtmp_connect() 226 conn->recv[FIRSTSOCKET] = rtmp_recv; in rtmp_connect() 227 conn->send[FIRSTSOCKET] = rtmp_send; in rtmp_connect() 240 Curl_setup_transfer(conn, -1, -1, FALSE, NULL, FIRSTSOCKET, NULL); in rtmp_do() 243 Curl_setup_transfer(conn, FIRSTSOCKET, -1, FALSE, NULL, -1, NULL); in rtmp_do()
|
D | openldap.c | 206 rc = ldap_init_fd(conn->sock[FIRSTSOCKET], li->proto, hosturl, &li->ld); in ldap_connect() 218 result = Curl_ssl_connect_nonblocking(conn, FIRSTSOCKET, &li->ssldone); in ldap_connect() 240 CURLcode result = Curl_ssl_connect_nonblocking(conn, FIRSTSOCKET, in ldap_connecting() 252 li->recv = conn->recv[FIRSTSOCKET]; in ldap_connecting() 253 li->send = conn->send[FIRSTSOCKET]; in ldap_connecting() 326 conn->recv[FIRSTSOCKET] = ldap_recv; in ldap_connecting() 388 Curl_setup_transfer(conn, FIRSTSOCKET, -1, FALSE, NULL, -1, NULL); in ldap_do() 638 return Curl_ssl_data_pending(conn, FIRSTSOCKET); in ldapsb_tls_ctrl() 651 ret = li->recv(conn, FIRSTSOCKET, buf, len, &err); in ldapsb_tls_read() 666 ret = li->send(conn, FIRSTSOCKET, buf, len, &err); in ldapsb_tls_write()
|
D | dict.c | 137 curl_socket_t sockfd = conn->sock[FIRSTSOCKET]; in dict_do() 203 Curl_setup_transfer(conn, FIRSTSOCKET, -1, FALSE, bytecount, in dict_do() 250 Curl_setup_transfer(conn, FIRSTSOCKET, -1, FALSE, bytecount, in dict_do() 273 Curl_setup_transfer(conn, FIRSTSOCKET, -1, FALSE, bytecount, -1, NULL); in dict_do()
|
D | pingpong.c | 84 curl_socket_t sock = conn->sock[FIRSTSOCKET]; in Curl_pp_statemach() 107 else if(!pp->sendleft && Curl_ssl_data_pending(conn, FIRSTSOCKET)) in Curl_pp_statemach() 202 result = Curl_write(conn, conn->sock[FIRSTSOCKET], s, write_len, in Curl_pp_vsendf() 459 socks[0] = conn->sock[FIRSTSOCKET]; in Curl_pp_getsock() 475 curl_socket_t sock = conn->sock[FIRSTSOCKET]; in Curl_pp_flushsend()
|
D | gopher.c | 79 curl_socket_t sockfd = conn->sock[FIRSTSOCKET]; in gopher_do() 161 Curl_setup_transfer(conn, FIRSTSOCKET, -1, FALSE, bytecount, in gopher_do()
|
D | rtsp.c | 94 socks[0] = conn->sock[FIRSTSOCKET]; in rtsp_getsock_do() 151 sval = Curl_socket_ready(check->sock[FIRSTSOCKET], CURL_SOCKET_BAD, 0); in Curl_rtsp_connisdead() 315 Curl_setup_transfer(conn, FIRSTSOCKET, -1, TRUE, in rtsp_do() 559 &data->info.request_size, 0, FIRSTSOCKET); in rtsp_do() 565 Curl_setup_transfer(conn, FIRSTSOCKET, -1, TRUE, &http->readbytecount, in rtsp_do() 566 putsize?FIRSTSOCKET:-1, in rtsp_do()
|
D | http2.c | 60 sock[0] = conn->sock[FIRSTSOCKET]; in http2_perform_getsock() 63 bitmap |= GETSOCK_READSOCK(FIRSTSOCKET); in http2_perform_getsock() 66 bitmap |= GETSOCK_WRITESOCK(FIRSTSOCKET); in http2_perform_getsock() 190 written = ((Curl_send*)c->send_underlying)(conn, FIRSTSOCKET, in send_callback() 901 conn, FIRSTSOCKET, httpc->inbuf, H2_BUFSIZE, &result); in http2_recv() 1259 httpc->recv_underlying = (recving)conn->recv[FIRSTSOCKET]; in Curl_http2_switched() 1260 httpc->send_underlying = (sending)conn->send[FIRSTSOCKET]; in Curl_http2_switched() 1261 conn->recv[FIRSTSOCKET] = http2_recv; in Curl_http2_switched() 1262 conn->send[FIRSTSOCKET] = http2_send; in Curl_http2_switched()
|
D | http.c | 1367 if(conn->tunnel_state[FIRSTSOCKET] == TUNNEL_CONNECT) in Curl_http_connect() 1392 socks[0] = conn->sock[FIRSTSOCKET]; in http_getsock_do() 1403 result = Curl_ssl_connect_nonblocking(conn, FIRSTSOCKET, done); in https_connecting() 1420 struct ssl_connect_data *connssl = &conn->ssl[FIRSTSOCKET]; in https_getsock() 1427 socks[0] = conn->sock[FIRSTSOCKET]; in https_getsock() 1432 socks[0] = conn->sock[FIRSTSOCKET]; in https_getsock() 2423 &data->info.request_size, 0, FIRSTSOCKET); in Curl_http() 2428 Curl_setup_transfer(conn, FIRSTSOCKET, -1, TRUE, &http->readbytecount, in Curl_http() 2493 &data->info.request_size, 0, FIRSTSOCKET); in Curl_http() 2498 Curl_setup_transfer(conn, FIRSTSOCKET, -1, TRUE, in Curl_http() [all …]
|
D | telnet.c | 355 bytes_written = swrite(conn->sock[FIRSTSOCKET], buf, 3); in send_negotiation() 944 bytes_written = swrite(conn->sock[FIRSTSOCKET], temp, len); in suboption() 956 bytes_written = swrite(conn->sock[FIRSTSOCKET], temp, len); in suboption() 984 bytes_written = swrite(conn->sock[FIRSTSOCKET], temp, len); in suboption() 1039 bytes_written = swrite(conn->sock[FIRSTSOCKET], tn->subbuffer, 3); in sendsuboption() 1048 bytes_written = swrite(conn->sock[FIRSTSOCKET], tn->subbuffer+7, 2); in sendsuboption() 1242 pfd[0].fd = conn->sock[FIRSTSOCKET]; in send_telnet_data() 1251 result = Curl_write(conn, conn->sock[FIRSTSOCKET], in send_telnet_data() 1285 curl_socket_t sockfd = conn->sock[FIRSTSOCKET]; in telnet_do()
|
D | ssh.c | 705 curl_socket_t sock = conn->sock[FIRSTSOCKET]; in ssh_statemach_act() 1768 Curl_setup_transfer(conn, -1, -1, FALSE, NULL, FIRSTSOCKET, NULL); in ssh_statemach_act() 2206 Curl_setup_transfer(conn, FIRSTSOCKET, data->req.size, in ssh_statemach_act() 2343 FIRSTSOCKET, NULL); in ssh_statemach_act() 2403 Curl_setup_transfer(conn, FIRSTSOCKET, bytecount, FALSE, NULL, -1, NULL); in ssh_statemach_act() 2624 sock[0] = conn->sock[FIRSTSOCKET]; in ssh_perform_getsock() 2627 bitmap |= GETSOCK_READSOCK(FIRSTSOCKET); in ssh_perform_getsock() 2630 bitmap |= GETSOCK_WRITESOCK(FIRSTSOCKET); in ssh_perform_getsock() 2736 curl_socket_t sock = conn->sock[FIRSTSOCKET]; in ssh_block_statemach() 2793 conn->recv[FIRSTSOCKET] = scp_recv; in ssh_connect() [all …]
|
D | connect.c | 553 if(sockindex == FIRSTSOCKET) { in trynextip() 730 DEBUGASSERT(sockindex >= FIRSTSOCKET && sockindex <= SECONDARYSOCKET); in Curl_is_connected() 802 if(sockindex == FIRSTSOCKET) in Curl_is_connected() 1231 sockfd = c->sock[FIRSTSOCKET]; in Curl_getconnectinfo() 1234 if(c->ssl[FIRSTSOCKET].use) { in Curl_getconnectinfo() 1244 if(recv((RECV_TYPE_ARG1)c->sock[FIRSTSOCKET], (RECV_TYPE_ARG2)&buf, in Curl_getconnectinfo()
|
D | smtp.c | 419 result = Curl_ssl_connect_nonblocking(conn, FIRSTSOCKET, &smtpc->ssldone); in smtp_perform_upgrade_tls() 719 if(data->set.use_ssl <= CURLUSESSL_TRY || conn->ssl[FIRSTSOCKET].use) in smtp_state_ehlo_resp() 779 if(data->set.use_ssl && !conn->ssl[FIRSTSOCKET].use) { in smtp_state_ehlo_resp() 965 Curl_setup_transfer(conn, -1, -1, FALSE, NULL, FIRSTSOCKET, NULL); in smtp_state_data_resp() 996 curl_socket_t sock = conn->sock[FIRSTSOCKET]; in smtp_statemach_act() 1085 result = Curl_ssl_connect_nonblocking(conn, FIRSTSOCKET, &smtpc->ssldone); in smtp_multi_statemach() 1317 *connected = conn->bits.tcpconnect[FIRSTSOCKET]; in smtp_perform()
|
D | pop3.c | 396 result = Curl_ssl_connect_nonblocking(conn, FIRSTSOCKET, &pop3c->ssldone); in pop3_perform_upgrade_tls() 754 if(data->set.use_ssl && !conn->ssl[FIRSTSOCKET].use) { in pop3_state_capa_resp() 939 Curl_setup_transfer(conn, FIRSTSOCKET, -1, FALSE, NULL, -1, NULL); in pop3_state_command_resp() 969 curl_socket_t sock = conn->sock[FIRSTSOCKET]; in pop3_statemach_act() 1047 result = Curl_ssl_connect_nonblocking(conn, FIRSTSOCKET, &pop3c->ssldone); in pop3_multi_statemach() 1209 *connected = conn->bits.tcpconnect[FIRSTSOCKET]; in pop3_perform()
|
D | smb.c | 296 result = Curl_read(conn, FIRSTSOCKET, buf + smbc->got, len, &bytes_read); in smb_recv_message() 367 result = Curl_write(conn, FIRSTSOCKET, conn->data->state.uploadbuffer, in smb_send() 392 result = Curl_write(conn, FIRSTSOCKET, in smb_flush() 643 result = Curl_ssl_connect_nonblocking(conn, FIRSTSOCKET, &ssl_done); in smb_connection_state() 920 socks[0] = conn->sock[FIRSTSOCKET]; in smb_getsock()
|
D | url.c | 2674 Curl_ssl_close(conn, FIRSTSOCKET); in conn_free() 2680 if(CURL_SOCKET_BAD != conn->sock[FIRSTSOCKET]) in conn_free() 2681 Curl_closesocket(conn, conn->sock[FIRSTSOCKET]); in conn_free() 2785 Curl_ssl_close(conn, FIRSTSOCKET); in Curl_disconnect() 3037 dead = SocketIsDead(conn->sock[FIRSTSOCKET]); in disconnect_if_dead() 3206 if((check->sock[FIRSTSOCKET] == CURL_SOCKET_BAD) || in ConnectionExists() 3307 else if(check->ssl[FIRSTSOCKET].state != ssl_connection_complete) { in ConnectionExists() 3471 FIRSTSOCKET, conn); in Curl_connected_proxy() 3475 conn->remote_port, FIRSTSOCKET, conn, FALSE); in Curl_connected_proxy() 3479 conn->remote_port, FIRSTSOCKET, conn, TRUE); in Curl_connected_proxy() [all …]
|
D | imap.c | 507 result = Curl_ssl_connect_nonblocking(conn, FIRSTSOCKET, &imapc->ssldone); in imap_perform_upgrade_tls() 918 if(data->set.use_ssl && !conn->ssl[FIRSTSOCKET].use) { in imap_state_capability_resp() 1171 Curl_setup_transfer(conn, FIRSTSOCKET, size, FALSE, NULL, -1, NULL); in imap_state_fetch_resp() 1221 Curl_setup_transfer(conn, -1, -1, FALSE, NULL, FIRSTSOCKET, NULL); in imap_state_append_resp() 1276 curl_socket_t sock = conn->sock[FIRSTSOCKET]; in imap_statemach_act() 1372 result = Curl_ssl_connect_nonblocking(conn, FIRSTSOCKET, &imapc->ssldone); in imap_multi_statemach() 1595 *connected = conn->bits.tcpconnect[FIRSTSOCKET]; in imap_perform()
|
D | ftp.c | 417 curl_socket_t ctrl_sock = conn->sock[FIRSTSOCKET]; in ReceivedServerConnect() 678 curl_socket_t sockfd = conn->sock[FIRSTSOCKET]; in Curl_GetFTPResponse() 887 socks[0] = conn->sock[FIRSTSOCKET]; in ftp_domore_getsock() 1101 if(getsockname(conn->sock[FIRSTSOCKET], sa, &sslen)) { in ftp_state_use_port() 1185 if(getsockname(conn->sock[FIRSTSOCKET], sa, &sslen)) { in ftp_state_use_port() 2597 if(conn->ssl[FIRSTSOCKET].use) { in ftp_state_loggedin() 2697 curl_socket_t sock = conn->sock[FIRSTSOCKET]; in ftp_statemach_act() 2743 if(data->set.use_ssl && !conn->ssl[FIRSTSOCKET].use) { in ftp_statemach_act() 2786 result = Curl_ssl_connect(conn, FIRSTSOCKET); in ftp_statemach_act() 2854 result = Curl_ssl_shutdown(conn, FIRSTSOCKET); in ftp_statemach_act() [all …]
|
D | security.c | 538 conn->recv[FIRSTSOCKET] = sec_recv; in choose_mech() 539 conn->send[FIRSTSOCKET] = sec_send; in choose_mech()
|
D | multi.c | 656 sock[0] = conn->sock[FIRSTSOCKET]; in waitproxyconnect_getsock() 660 if(conn->tunnel_state[FIRSTSOCKET] == TUNNEL_CONNECT) in waitproxyconnect_getsock() 1124 if(data->easy_conn->tunnel_state[FIRSTSOCKET] == TUNNEL_CONNECT) in multi_runsingle() 1181 if(data->easy_conn->tunnel_state[FIRSTSOCKET] == TUNNEL_CONNECT) in multi_runsingle() 1211 if(data->easy_conn->tunnel_state[FIRSTSOCKET] == TUNNEL_COMPLETE) in multi_runsingle() 1220 result = Curl_is_connected(data->easy_conn, FIRSTSOCKET, &connected); in multi_runsingle()
|
D | krb5.c | 166 if(getsockname(conn->sock[FIRSTSOCKET], in krb5_auth()
|
D | http_proxy.c | 70 result = Curl_proxyCONNECT(conn, FIRSTSOCKET, in Curl_proxy_connect()
|
D | tftp.c | 983 state->sockfd = state->conn->sock[FIRSTSOCKET]; in tftp_connect() 1064 socks[0] = conn->sock[FIRSTSOCKET]; in tftp_getsock()
|
D | transfer.c | 312 Curl_ssl_data_pending(conn, FIRSTSOCKET) || in data_pending() 322 Curl_ssl_data_pending(conn, FIRSTSOCKET); in data_pending()
|
D | urldata.h | 580 #define FIRSTSOCKET 0 macro
|
/external/curl/lib/vtls/ |
D | gskit.c | 1055 if(!cxn->ssl[FIRSTSOCKET].handle) in Curl_gskit_check_cxn() 1061 if(getsockopt(cxn->sock[FIRSTSOCKET], SOL_SOCKET, SO_ERROR, in Curl_gskit_check_cxn()
|