/curl/lib/ |
H A D | conncache.c | 128 Curl_llist_append(&bundle->conns, conn, &conn->cpool_node); in cpool_bundle_add() 249 conn->destination, conn->destination_len); in cpool_find_bundle() 564 if(CONN_INUSE(conn) || conn->bits.close || conn->connect_only) in cpool_get_oldest_idle() 645 while(conn) { in cpool_close_and_destroy_all() 768 Curl_llist_append(&cpool->shutdowns, conn, &conn->cpool_node); in cpool_discard_conn() 837 if(conn->handler && conn->handler->disconnect) { in cpool_run_conn_shutdown_handler() 841 conn->connection_id, conn->bits.aborted)); in cpool_run_conn_shutdown_handler() 843 conn->handler->disconnect(data, conn, conn->bits.aborted); in cpool_run_conn_shutdown_handler() 861 DEBUGASSERT(data->conn == conn); in cpool_run_conn_shutdown() 1147 for(conn = cpool_get_live_conn(cpool); conn; in cpool_shutdown_all() [all …]
|
H A D | url.c | 872 if(conn->connect_only || conn->bits.close) in url_match_conn() 1337 conn->keepalive = conn->created; in allocate_conn() 1351 conn->bits.socksproxy = (conn->bits.proxy && !conn->bits.httpproxy); in allocate_conn() 1392 conn->lastused = conn->created; in allocate_conn() 1640 conn->handler = conn->given = p; in findprotocol() 1817 conn->host.name = conn->host.rawalloc; 2512 conn->bits.proxy = conn->bits.httpproxy || conn->bits.socksproxy; 3233 ehost = conn->bits.conn_to_host ? &conn->conn_to_host : &conn->host; 3236 conn->primary.remote_port = conn->bits.conn_to_port ? conn->conn_to_port : 3499 if(conn->bits.conn_to_port && conn->conn_to_port == conn->remote_port) { [all …]
|
H A D | http_negotiate.c | 58 userp = conn->http_proxy.user; in Curl_input_negotiate() 59 passwdp = conn->http_proxy.passwd; in Curl_input_negotiate() 62 host = conn->http_proxy.host.name; in Curl_input_negotiate() 63 neg_ctx = &conn->proxyneg; in Curl_input_negotiate() 70 userp = conn->user; in Curl_input_negotiate() 71 passwdp = conn->passwd; in Curl_input_negotiate() 74 host = conn->host.name; in Curl_input_negotiate() 75 neg_ctx = &conn->negotiate; in Curl_input_negotiate() 76 state = conn->http_negotiate_state; in Curl_input_negotiate() 150 neg_ctx = &conn->proxyneg; in Curl_output_negotiate() [all …]
|
H A D | krb5.c | 144 (void)conn; in krb5_decode() 521 struct connectdata *conn = data->conn; in read_data() local 552 nread = conn->mech->decode(conn->app_data, in read_data() 554 len, conn->data_prot, conn); in read_data() 579 struct connectdata *conn = data->conn; in sec_recv() local 584 if(conn->sec_complete == 0 || conn->data_prot == PROT_CLEAR) { in sec_recv() 696 struct connectdata *conn = data->conn; in sec_send() local 761 struct connectdata *conn = data->conn; in sec_set_protection_level() local 882 ret = mech->auth(conn->app_data, data, conn); in choose_mech() 916 if(conn->mech && conn->mech->end) in Curl_sec_end() [all …]
|
H A D | curl_sasl.c | 93 (void)conn; in Curl_sasl_cleanup() 347 struct connectdata *conn = data->conn; in Curl_sasl_start() local 412 conn->passwd, &conn->gsasl); in Curl_sasl_start() 425 conn->passwd, &conn->gsasl); in Curl_sasl_start() 454 conn->user, conn->passwd, in Curl_sasl_start() 491 conn->user, conn->passwd, in Curl_sasl_start() 536 struct connectdata *conn = data->conn; in Curl_sasl_continue() local 576 conn->user, conn->passwd, &resp); in Curl_sasl_continue() 608 conn->user, conn->passwd, in Curl_sasl_continue() 622 conn->user, conn->passwd, in Curl_sasl_continue() [all …]
|
H A D | pop3.c | 474 conn->user ? conn->user : ""); in pop3_perform_user() 653 struct connectdata *conn = data->conn; in pop3_perform_command() local 710 struct connectdata *conn = data->conn; in pop3_state_servergreet_resp() local 760 struct connectdata *conn = data->conn; in pop3_state_capa_resp() local 873 struct connectdata *conn = data->conn; in pop3_state_auth_resp() local 932 struct connectdata *conn = data->conn; in pop3_state_user_resp() local 942 conn->passwd ? conn->passwd : ""); in pop3_state_user_resp() 973 struct connectdata *conn = data->conn; in pop3_state_command_resp() local 1110 struct connectdata *conn = data->conn; in pop3_multi_statemach() local 1174 struct connectdata *conn = data->conn; in pop3_connect() local [all …]
|
H A D | http_ntlm.c | 73 struct connectdata *conn = data->conn; in Curl_input_ntlm() local 75 ntlm = proxy ? &conn->proxyntlm : &conn->ntlm; in Curl_input_ntlm() 76 state = proxy ? &conn->proxy_ntlm_state : &conn->http_ntlm_state; in Curl_input_ntlm() 149 struct connectdata *conn = data->conn; in Curl_output_ntlm() local 151 DEBUGASSERT(conn); in Curl_output_ntlm() 162 ntlm = &conn->proxyntlm; in Curl_output_ntlm() 163 state = &conn->proxy_ntlm_state; in Curl_output_ntlm() 175 hostname = conn->host.name; in Curl_output_ntlm() 176 ntlm = &conn->ntlm; in Curl_output_ntlm() 177 state = &conn->http_ntlm_state; in Curl_output_ntlm() [all …]
|
H A D | cfilters.c | 176 DEBUGASSERT(data->conn); in Curl_conn_close() 314 DEBUGASSERT(conn); in Curl_conn_cf_add() 315 DEBUGASSERT(!cf->conn); in Curl_conn_cf_add() 319 cf->conn = conn; in Curl_conn_cf_add() 337 cf_new->conn = cf_at->conn; in Curl_conn_cf_insert_after() 487 return conn ? Curl_conn_cf_is_ssl(conn->cfilter[sockindex]) : FALSE; in Curl_conn_is_ssl() 492 struct Curl_cfilter *cf = conn ? conn->cfilter[sockindex] : NULL; in Curl_conn_is_multiplex() 676 cf = data->conn ? data->conn->cfilter[sockindex] : NULL; in Curl_conn_get_socket() 682 return data->conn ? data->conn->sock[sockindex] : CURL_SOCKET_BAD; in Curl_conn_get_socket() 687 if(data->conn) { in Curl_conn_forget_socket() [all …]
|
H A D | ftp.c | 153 struct connectdata *conn = data->conn; in _ftp_state() local 427 struct connectdata *conn = data->conn; in ftp_check_ctrl_on_data_wait() local 509 struct connectdata *conn = data->conn; in InitiateTransfer() local 566 struct connectdata *conn = data->conn; in ftp_readresp() local 628 struct connectdata *conn = data->conn; in Curl_GetFTPResponse() local 851 struct connectdata *conn = data->conn; in ftp_state_use_port() local 1278 struct connectdata *conn = data->conn; in ftp_state_prepare_transfer() local 1364 struct connectdata *conn = data->conn; in ftp_state_list() local 1441 struct connectdata *conn = data->conn; in ftp_state_type() local 1473 struct connectdata *conn = data->conn; in ftp_state_mdtm() local [all …]
|
H A D | smtp.c | 328 struct connectdata *conn = data->conn; in smtp_perform_ehlo() local 398 struct connectdata *conn = data->conn; in smtp_perform_upgrade_tls() local 494 struct connectdata *conn = data->conn; in smtp_perform_authentication() local 531 struct connectdata *conn = data->conn; in smtp_perform_command() local 606 struct connectdata *conn = data->conn; in smtp_perform_mail() local 788 struct connectdata *conn = data->conn; in smtp_perform_rcpt_to() local 1009 struct connectdata *conn = data->conn; in smtp_state_auth_resp() local 1286 struct connectdata *conn = data->conn; in smtp_multi_statemach() local 1350 struct connectdata *conn = data->conn; in smtp_connect() local 1398 struct connectdata *conn = data->conn; in smtp_done() local [all …]
|
H A D | openldap.c | 349 struct connectdata *conn = data->conn; in oldap_perform_auth() local 371 struct connectdata *conn = data->conn; in oldap_continue_auth() local 405 struct connectdata *conn = data->conn; in oldap_perform_bind() local 472 struct connectdata *conn = data->conn; in oldap_ssl_connect() local 508 struct connectdata *conn = data->conn; in oldap_connect() local 597 struct connectdata *conn = data->conn; in oldap_state_mechs_resp() local 662 struct connectdata *conn = data->conn; in oldap_state_sasl_resp() local 689 struct connectdata *conn = data->conn; in oldap_state_bind_resp() local 715 struct connectdata *conn = data->conn; in oldap_connecting() local 870 struct connectdata *conn = data->conn; in oldap_do() local [all …]
|
H A D | curl_rtmp.c | 227 conn->proto.rtmp = r; in rtmp_setup_connection() 233 struct connectdata *conn = data->conn; in rtmp_connect() local 234 RTMP *r = conn->proto.rtmp; in rtmp_connect() 268 struct connectdata *conn = data->conn; in rtmp_do() local 269 RTMP *r = conn->proto.rtmp; in rtmp_do() 298 RTMP *r = conn->proto.rtmp; in rtmp_disconnect() 302 conn->proto.rtmp = NULL; in rtmp_disconnect() 312 struct connectdata *conn = data->conn; in rtmp_recv() local 313 RTMP *r = conn->proto.rtmp; in rtmp_recv() 334 struct connectdata *conn = data->conn; in rtmp_send() local [all …]
|
H A D | smb.c | 435 struct connectdata *conn = data->conn; in smb_connect() local 481 struct connectdata *conn = data->conn; in smb_recv_message() local 537 struct connectdata *conn = data->conn; in smb_format_message() local 559 struct connectdata *conn = data->conn; in smb_send() local 580 struct connectdata *conn = data->conn; in smb_flush() local 605 struct connectdata *conn = data->conn; in smb_send_message() local 625 struct connectdata *conn = data->conn; in smb_send_setup() local 676 struct connectdata *conn = data->conn; in smb_send_tree_connect() local 773 struct connectdata *conn = data->conn; in smb_send_write() local 802 struct connectdata *conn = data->conn; in smb_send_and_recv() local [all …]
|
H A D | transfer.c | 119 struct connectdata *conn = data->conn; in data_pending() local 170 sockindex = (data->conn->sockfd == data->conn->sock[SECONDARYSOCKET]); in xfer_recv_shutdown() 182 sockindex = (data->conn->sockfd == data->conn->sock[SECONDARYSOCKET]); in xfer_recv_shutdown_started() 194 sockindex = (data->conn->writesockfd == data->conn->sock[SECONDARYSOCKET]); in Curl_xfer_send_shutdown() 266 struct connectdata *conn = data->conn; in sendrecv_dl() local 439 result = data->conn->datastream(data, data->conn, &didwhat, in Curl_sendrecv() 709 struct connectdata *conn = data->conn; in Curl_retry_request() local 788 struct connectdata *conn = data->conn; in xfer_setup() local 796 if(conn->bits.multiplex || conn->httpversion >= 20 || want_send) { in xfer_setup() 801 conn->writesockfd = conn->sockfd; in xfer_setup() [all …]
|
H A D | pingpong.c | 53 struct connectdata *conn = data->conn; in Curl_pp_state_timeout() local 87 struct connectdata *conn = data->conn; in Curl_pp_statemach() local 171 struct connectdata *conn = data->conn; in Curl_pp_vsendf() local 181 if(!conn) in Curl_pp_vsendf() 200 conn->data_prot = PROT_CMD; in Curl_pp_vsendf() 210 data_sec = conn->data_prot; in Curl_pp_vsendf() 266 data->conn->data_prot = PROT_CLEAR; in pingpong_read() 287 struct connectdata *conn = data->conn; in Curl_pp_readresp() local 340 if(!conn->sec_complete) in Curl_pp_readresp() 391 struct connectdata *conn = data->conn; in Curl_pp_getsock() local [all …]
|
H A D | imap.c | 201 conn->bits.tls_upgraded = TRUE; in imap_to_imaps() 493 imap_to_imaps(conn); in imap_perform_upgrade_tls() 684 struct connectdata *conn = data->conn; in imap_perform_select() local 876 struct connectdata *conn = data->conn; in imap_state_servergreet_resp() local 899 struct connectdata *conn = data->conn; in imap_state_capability_resp() local 982 struct connectdata *conn = data->conn; in imap_state_starttls_resp() local 1084 struct connectdata *conn = data->conn; in imap_state_select_resp() local 1390 struct connectdata *conn = data->conn; in imap_multi_statemach() local 1455 struct connectdata *conn = data->conn; in imap_connect() local 1502 struct connectdata *conn = data->conn; in imap_done() local [all …]
|
H A D | http_proxy.c | 60 DEBUGASSERT(cf->conn); in Curl_http_proxy_get_destination() 62 if(cf->conn->bits.conn_to_host) in Curl_http_proxy_get_destination() 63 *phostname = cf->conn->conn_to_host.name; in Curl_http_proxy_get_destination() 65 *phostname = cf->conn->secondaryhostname; in Curl_http_proxy_get_destination() 67 *phostname = cf->conn->host.name; in Curl_http_proxy_get_destination() 70 *pport = cf->conn->secondary_port; in Curl_http_proxy_get_destination() 71 else if(cf->conn->bits.conn_to_port) in Curl_http_proxy_get_destination() 72 *pport = cf->conn->conn_to_port; in Curl_http_proxy_get_destination() 74 *pport = cf->conn->remote_port; in Curl_http_proxy_get_destination() 76 if(*phostname != cf->conn->host.name) in Curl_http_proxy_get_destination() [all …]
|
H A D | http.c | 491 struct connectdata *conn = data->conn; in Curl_http_auth_act() local 831 struct connectdata *conn = data->conn; in Curl_http_input_auth() local 1134 struct connectdata *conn = data->conn; in Curl_http_connect() local 1164 struct connectdata *conn = data->conn; in Curl_http_done() local 1251 struct connectdata *conn = data->conn; in Curl_dynhds_add_custom() local 1398 struct connectdata *conn = data->conn; in Curl_add_custom_headers() local 2376 struct connectdata *conn = data->conn; in Curl_http_firstwrite() local 2477 struct connectdata *conn = data->conn; in Curl_http() local 2822 struct connectdata *conn = data->conn; in Curl_http_header() local 3383 struct connectdata *conn = data->conn; in http_on_response() local [all …]
|
H A D | conncache.h | 47 struct connectdata *conn, 88 struct connectdata *conn) WARN_UNUSED_RESULT; 99 struct connectdata *conn); 102 typedef bool Curl_cpool_conn_match_cb(struct connectdata *conn, 134 struct connectdata *conn); 144 struct connectdata *conn, 161 typedef void Curl_cpool_conn_do_cb(struct connectdata *conn, 180 struct connectdata *conn,
|
/curl/docs/examples/ |
H A D | ghiper.c | 124 ConnInfo *conn; in check_multi_info() local 139 free(conn); in check_multi_info() 280 (void)conn; in write_cb() 296 ConnInfo *conn; in new_conn() local 302 if(!conn->easy) { in new_conn() 306 conn->global = g; in new_conn() 308 curl_easy_setopt(conn->easy, CURLOPT_URL, conn->url); in new_conn() 310 curl_easy_setopt(conn->easy, CURLOPT_WRITEDATA, &conn); in new_conn() 312 curl_easy_setopt(conn->easy, CURLOPT_ERRORBUFFER, conn->error); in new_conn() 313 curl_easy_setopt(conn->easy, CURLOPT_PRIVATE, conn); in new_conn() [all …]
|
H A D | evhiperfifo.c | 179 ConnInfo *conn; in check_multi_info() local 194 free(conn); in check_multi_info() 316 (void)conn; in write_cb() 337 ConnInfo *conn; in new_conn() local 344 if(!conn->easy) { in new_conn() 348 conn->global = g; in new_conn() 350 curl_easy_setopt(conn->easy, CURLOPT_URL, conn->url); in new_conn() 352 curl_easy_setopt(conn->easy, CURLOPT_WRITEDATA, conn); in new_conn() 354 curl_easy_setopt(conn->easy, CURLOPT_ERRORBUFFER, conn->error); in new_conn() 355 curl_easy_setopt(conn->easy, CURLOPT_PRIVATE, conn); in new_conn() [all …]
|
H A D | hiperfifo.c | 171 ConnInfo *conn; in check_multi_info() local 184 free(conn->url); in check_multi_info() 186 free(conn); in check_multi_info() 333 ConnInfo *conn; in new_conn() local 340 if(!conn->easy) { in new_conn() 344 conn->global = g; in new_conn() 346 curl_easy_setopt(conn->easy, CURLOPT_URL, conn->url); in new_conn() 348 curl_easy_setopt(conn->easy, CURLOPT_WRITEDATA, conn); in new_conn() 350 curl_easy_setopt(conn->easy, CURLOPT_ERRORBUFFER, conn->error); in new_conn() 351 curl_easy_setopt(conn->easy, CURLOPT_PRIVATE, conn); in new_conn() [all …]
|
H A D | ephiperfifo.c | 180 ConnInfo *conn; in check_multi_info() local 193 free(conn->url); in check_multi_info() 195 free(conn); in check_multi_info() 359 ConnInfo *conn; in new_conn() local 366 if(!conn->easy) { in new_conn() 370 conn->global = g; in new_conn() 372 curl_easy_setopt(conn->easy, CURLOPT_URL, conn->url); in new_conn() 374 curl_easy_setopt(conn->easy, CURLOPT_WRITEDATA, conn); in new_conn() 376 curl_easy_setopt(conn->easy, CURLOPT_ERRORBUFFER, conn->error); in new_conn() 377 curl_easy_setopt(conn->easy, CURLOPT_PRIVATE, conn); in new_conn() [all …]
|
H A D | htmltitle.cpp | 89 static bool init(CURL *&conn, char *url) in init() argument 93 conn = curl_easy_init(); in init() 95 if(conn == NULL) { in init() 106 code = curl_easy_setopt(conn, CURLOPT_URL, url); in init() 112 code = curl_easy_setopt(conn, CURLOPT_FOLLOWLOCATION, 1L); in init() 118 code = curl_easy_setopt(conn, CURLOPT_WRITEFUNCTION, writer); in init() 124 code = curl_easy_setopt(conn, CURLOPT_WRITEDATA, &buffer); in init() 259 CURL *conn = NULL; in main() local 274 if(!init(conn, argv[1])) { in main() 281 code = curl_easy_perform(conn); in main() [all …]
|
/curl/lib/vssh/ |
H A D | wolfssh.c | 141 struct connectdata *conn = data->conn; in state() local 252 struct connectdata *conn = data->conn; in wsftp_send() local 298 struct connectdata *conn = data->conn; in wsftp_recv() local 341 (void)conn; in wssh_setup_connection() 368 struct connectdata *conn = data->conn; in wssh_connect() local 445 struct connectdata *conn = data->conn; in wssh_statemach_act() local 687 conn->sockfd = conn->writesockfd; in wssh_statemach_act() 792 conn->writesockfd = conn->sockfd; in wssh_statemach_act() 904 struct connectdata *conn = data->conn; in wssh_multi_statemach() local 966 struct connectdata *conn = data->conn; in wssh_do() local [all …]
|