#include <stdarg.h>Go to the source code of this file.
| CURLcode Curl_addHandleToPipeline | ( | struct SessionHandle * | handle, | |
| struct curl_llist * | pipe | |||
| ) |
Definition at line 1945 of file url.c.
References Curl_llist_insert_next(), CURLE_OK, CURLE_OUT_OF_MEMORY, curl_llist::head, infof, IsPipeliningPossible(), and curl_llist::tail.
Referenced by multi_runsingle().
| CURLcode Curl_async_resolved | ( | struct connectdata * | conn, | |
| bool * | protocol_connect | |||
| ) |
Definition at line 4188 of file url.c.
References Curl_disconnect(), CURLE_OK, and SetupConnection().
Referenced by Curl_connect_host(), Curl_do(), and multi_runsingle().
| CURLcode Curl_ch_connc | ( | struct SessionHandle * | data, | |
| struct conncache * | c, | |||
| long | newamount | |||
| ) |
Definition at line 424 of file url.c.
References UrlState::connc, conncache::connects, Curl_disconnect(), Curl_mk_connc(), CURLE_OK, CURLE_OUT_OF_MEMORY, UrlState::lastconnect, NULL, conncache::num, realloc, and SessionHandle::state.
Referenced by curl_multi_add_handle(), and Curl_setopt().
| CURLcode Curl_close | ( | struct SessionHandle * | data | ) |
Definition at line 229 of file url.c.
References ares_destroy, connectdata::bits, c, SessionHandle::change, close_connections(), UrlState::closed, UrlState::connc, conncache::connects, PureInfo::contenttype, UserDefined::cookiejar, DynamicStatic::cookielist, Curl_share::cookies, SessionHandle::cookies, Curl_cookie_cleanup(), Curl_cookie_loadfiles(), Curl_cookie_output(), Curl_digest_cleanup(), Curl_global_host_cache_use, Curl_hash_destroy(), CURL_LOCK_ACCESS_SINGLE, CURL_LOCK_DATA_COOKIE, CURL_LOCK_DATA_SHARE, Curl_multi_rmeasy(), Curl_rm_connc(), Curl_safefree(), Curl_share_lock(), Curl_share_unlock(), curl_slist_free_all(), Curl_ssl_close_all, CURLE_OK, Curl_share::dirty, SessionHandle::dns, ConnectBits::done, UrlState::first_host, free, HandleData::generic, curl_llist::head, UrlState::headerbuff, Names::hostcache, Curl_share::hostcache, SessionHandle::info, infof, UrlState::is_in_pipeline, SessionHandle::magic, SessionHandle::multi, curl_llist_element::next, conncache::num, HandleData::pathbuffer, HandleData::proto, curl_llist_element::ptr, HandleData::range, HandleData::rangestringalloc, connectdata::recv_pipe, DynamicStatic::referer, DynamicStatic::referer_alloc, SessionHandle::reqdata, UrlState::scratch, connectdata::send_pipe, SessionHandle::set, SessionHandle::share, UrlState::shared_conn, SessionHandle::state, TRUE, conncache::type, DynamicStatic::url, and DynamicStatic::url_alloc.
Referenced by add_closure(), curl_easy_cleanup(), and curl_multi_cleanup().
| void Curl_close_connections | ( | struct SessionHandle * | data | ) |
| CURLcode Curl_connect | ( | struct SessionHandle * | , | |
| struct connectdata ** | , | |||
| bool * | async, | |||
| bool * | protocol_connect | |||
| ) |
Definition at line 4143 of file url.c.
References CreateConnection(), Curl_disconnect(), CURLE_OK, FALSE, UrlState::is_in_pipeline, NULL, SetupConnection(), SessionHandle::state, and TRUE.
Referenced by Curl_connect_host(), Curl_do(), and multi_runsingle().
| CURLcode Curl_disconnect | ( | struct connectdata * | ) |
Definition at line 1832 of file url.c.
References UrlState::authhost, UrlState::authproblem, UrlState::authproxy, conn_free(), UrlState::connc, connectdata::connectindex, conncache::connects, connectdata::curl_disconnect, Curl_expire(), Curl_hash_apply(), Curl_hostcache_prune(), Curl_ntlm_cleanup, Curl_scan_cache_used(), Curl_ssl_close(), CURLE_OK, connectdata::data, DEBUGF, auth::done, hostname::encalloc, FALSE, connectdata::host, infof, IsPipeliningEnabled(), connectdata::ntlm, NTLMSTATE_NONE, NULL, auth::picked, connectdata::proxy, connectdata::proxyntlm, connectdata::recv_pipe, connectdata::send_pipe, signalPipeClose(), SessionHandle::state, ntlmdata::state, and auth::want.
Referenced by ConnectionExists(), ConnectionKillOne(), Curl_async_resolved(), Curl_ch_connc(), Curl_connect(), Curl_connect_host(), Curl_done(), curl_multi_cleanup(), and multi_runsingle().
| CURLcode Curl_do | ( | struct connectdata ** | , | |
| bool * | done | |||
| ) |
Definition at line 4288 of file url.c.
References connectdata::bits, ConnectBits::close, Curl_async_resolved(), Curl_connect(), connectdata::curl_do, Curl_done(), Curl_wait_for_resolv(), CURLE_OK, CURLE_SEND_ERROR, connectdata::data, ConnectBits::do_more, ConnectBits::done, FALSE, infof, NULL, ConnectBits::reuse, and TRUE.
Referenced by Curl_perform(), and multi_runsingle().
| CURLcode Curl_do_more | ( | struct connectdata * | ) |
Definition at line 4356 of file url.c.
References connectdata::curl_do_more, and CURLE_OK.
Referenced by multi_runsingle().
| int Curl_doing_getsock | ( | struct connectdata * | conn, | |
| curl_socket_t * | socks, | |||
| int | numsocks | |||
| ) |
Definition at line 2393 of file url.c.
References connectdata::curl_doing_getsock, and GETSOCK_BLANK.
Referenced by multi_getsock().
| CURLcode Curl_done | ( | struct connectdata ** | , | |
| CURLcode | , | |||
| bool | premature | |||
| ) |
Definition at line 4209 of file url.c.
References ares_cancel, connectdata::bits, ConnectBits::close, connectdata::connectindex, ConnectionDone(), Curl_disconnect(), connectdata::curl_done, Curl_expire(), Curl_pgrsDone(), Curl_removeHandleFromPipeline(), Curl_resolv_unlock(), CURLE_OK, connectdata::data, hostname::dispname, connectdata::dns_entry, ConnectBits::done, FALSE, free, connectdata::host, ConnectBits::httpproxy, infof, UrlState::lastconnect, HandleData::newurl, NULL, connectdata::proxy, connectdata::readchannel_inuse, connectdata::recv_pipe, SessionHandle::reqdata, UserDefined::reuse_forbid, connectdata::send_pipe, SessionHandle::set, SessionHandle::state, TRUE, and connectdata::writechannel_inuse.
Referenced by Curl_connect_host(), Curl_do(), curl_multi_remove_handle(), Curl_perform(), and multi_runsingle().
| bool Curl_isHandleAtHead | ( | struct SessionHandle * | handle, | |
| struct curl_llist * | pipe | |||
| ) |
Definition at line 1992 of file url.c.
References FALSE, curl_llist::head, and curl_llist_element::ptr.
Referenced by multi_runsingle().
| struct conncache* Curl_mk_connc | ( | int | type, | |
| long | amount | |||
| ) | [read] |
Definition at line 389 of file url.c.
References c, calloc, conncache::CONNCACHE_PRIVATE, conncache::connects, free, NULL, and conncache::num.
Referenced by Curl_ch_connc(), curl_easy_duphandle(), curl_easy_perform(), and curl_multi_init().
| CURLcode Curl_open | ( | struct SessionHandle ** | curl | ) |
| curl | is a pointer to a sessionhandle pointer that gets set by this function. |
Definition at line 503 of file url.c.
References ares_destroy, ssl_config_data::CAfile, calloc, UserDefined::convfromnetwork, UserDefined::convfromutf8, UserDefined::convtonetwork, Curl_easy_initHandleData(), CURLAUTH_BASIC, CURLE_FAILED_INIT, CURLE_OK, CURLE_OUT_OF_MEMORY, CURLEASY_MAGIC_NUMBER, CURLPROXY_HTTP, CURLSSH_AUTH_DEFAULT, UrlState::current_speed, DEBUGF, UserDefined::dns_cache_timeout, UserDefined::err, Progress::flags, fread(), UserDefined::fread, free, UserDefined::ftp_filemethod, UserDefined::ftp_use_eprt, UserDefined::ftp_use_epsv, FTPFILE_MULTICWD, fwrite(), UserDefined::fwrite, UrlState::headerbuff, UrlState::headersize, HEADERSIZE, UserDefined::hide_progress, UserDefined::httpauth, UserDefined::httpreq, HTTPREQ_GET, UserDefined::in, UserDefined::infilesize, UrlState::lastconnect, SessionHandle::magic, malloc, UserDefined::maxredirs, UserDefined::new_directory_perms, UserDefined::new_file_perms, NULL, ssl_config_data::numsessions, UserDefined::out, PGRS_HIDE, UserDefined::postfieldsize, SessionHandle::progress, UserDefined::proxyauth, UserDefined::proxyport, UserDefined::proxytype, ssl_config_data::sessionid, SessionHandle::set, UserDefined::ssh_auth_types, UserDefined::ssl, SessionHandle::state, TRUE, ssl_config_data::verifyhost, ssl_config_data::verifypeer, and ZERO_NULL.
Referenced by curl_easy_init().
| CURLcode Curl_protocol_connect | ( | struct connectdata * | conn, | |
| bool * | done | |||
| ) |
Definition at line 2447 of file url.c.
References connectdata::bits, connectdata::curl_connect, connectdata::curl_connecting, Curl_pgrsTime(), Curl_tvnow, CURLE_OK, connectdata::data, FALSE, connectdata::now, ConnectBits::protoconnstart, SessionHandle::set, ConnectBits::tcpconnect, TIMER_CONNECT, TRUE, UserDefined::verbose, and verboseconnect().
Referenced by multi_runsingle(), and SetupConnection().
| CURLcode Curl_protocol_connecting | ( | struct connectdata * | conn, | |
| bool * | done | |||
| ) |
Definition at line 2408 of file url.c.
References connectdata::curl_connecting, CURLE_OK, FALSE, and TRUE.
Referenced by multi_runsingle().
| CURLcode Curl_protocol_doing | ( | struct connectdata * | conn, | |
| bool * | done | |||
| ) |
Definition at line 2428 of file url.c.
References connectdata::curl_doing, CURLE_OK, FALSE, and TRUE.
Referenced by multi_runsingle().
| int Curl_protocol_getsock | ( | struct connectdata * | conn, | |
| curl_socket_t * | socks, | |||
| int | numsocks | |||
| ) |
Definition at line 2384 of file url.c.
References connectdata::curl_proto_getsock, and GETSOCK_BLANK.
Referenced by multi_getsock().
| int Curl_removeHandleFromPipeline | ( | struct SessionHandle * | handle, | |
| struct curl_llist * | pipe | |||
| ) |
Definition at line 1961 of file url.c.
References Curl_llist_remove(), curl_llist::head, curl_llist_element::next, NULL, and curl_llist_element::ptr.
Referenced by Curl_done(), and multi_runsingle().
| void Curl_rm_connc | ( | struct conncache * | c | ) |
Definition at line 482 of file url.c.
References conn_free(), conncache::connects, free, and conncache::num.
Referenced by Curl_close(), curl_easy_duphandle(), curl_multi_add_handle(), and curl_multi_cleanup().
| void Curl_safefree | ( | void * | ptr | ) |
Definition at line 207 of file url.c.
References free.
Referenced by add_buffer(), conn_free(), CreateConnection(), Curl_close(), curl_easy_reset(), Curl_file_done(), Curl_http(), Curl_output_digest(), Curl_proxyCONNECT(), Curl_readwrite(), Curl_store_ip_addr(), SetupConnection(), and tftp_send_first().
| CURLcode Curl_setopt | ( | struct SessionHandle * | data, | |
| CURLoption | option, | |||
| va_list | arg | |||
| ) |
Definition at line 629 of file url.c.
References ALL_CONTENT_ENCODINGS, UserDefined::buffer_size, BUFSIZE, ssl_config_data::CAfile, Progress::callback, ssl_config_data::CApath, UserDefined::cert, UserDefined::cert_type, SessionHandle::change, checkprefix, ssl_config_data::cipher_list, UrlState::connc, UserDefined::connect_only, UserDefined::connecttimeout, UserDefined::convfromnetwork, UserDefined::convfromutf8, UserDefined::convtonetwork, UserDefined::cookie, UserDefined::cookiejar, DynamicStatic::cookielist, Curl_share::cookies, SessionHandle::cookies, UserDefined::cookiesession, UserDefined::crlf, Curl_ch_connc(), Curl_cookie_add(), Curl_cookie_cleanup(), Curl_cookie_clearall(), Curl_cookie_clearsess(), Curl_cookie_init(), Curl_global_host_cache_init(), Curl_hash_destroy(), CURL_LOCK_ACCESS_SINGLE, CURL_LOCK_DATA_SHARE, Curl_share_lock(), Curl_share_unlock(), curl_slist_append(), Curl_ssl_set_engine(), Curl_ssl_set_engine_default(), CURLAUTH_GSSNEGOTIATE, CURLAUTH_NTLM, CURLE_FAILED_INIT, CURLE_OK, CURLE_OUT_OF_MEMORY, UserDefined::customrequest, UserDefined::debugdata, UserDefined::device, Curl_share::dirty, SessionHandle::dns, UserDefined::dns_cache_timeout, ssl_config_data::egdsocket, UserDefined::encoding, UserDefined::err, UserDefined::errorbuffer, FALSE, UserDefined::fdebug, Progress::flags, UserDefined::fprogress, fread(), UserDefined::fread, free, UserDefined::fsockopt, ssl_config_data::fsslctx, ssl_config_data::fsslctxp, UserDefined::ftp_account, UserDefined::ftp_alternative_to_user, UserDefined::ftp_append, UserDefined::ftp_ccc, UserDefined::ftp_create_missing_dirs, UserDefined::ftp_filemethod, UserDefined::ftp_list_only, UserDefined::ftp_response_timeout, UserDefined::ftp_skip_ip, UserDefined::ftp_ssl, UserDefined::ftp_use_eprt, UserDefined::ftp_use_epsv, UserDefined::ftp_use_port, UserDefined::ftpport, UserDefined::ftpsslauth, fwrite(), UserDefined::fwrite, UserDefined::fwrite_header, UserDefined::get_filetime, UserDefined::global_dns_cache, UserDefined::headers, UserDefined::hide_progress, Curl_share::hostcache, Names::hostcache, Names::hostcachetype, UserDefined::http200aliases, UserDefined::http_auto_referer, UserDefined::http_ce_skip, UserDefined::http_disable_hostname_check_before_authentication, UserDefined::http_fail_on_error, UserDefined::http_follow_location, UserDefined::http_te_skip, UserDefined::httpauth, UserDefined::httppost, UserDefined::httpreq, HTTPREQ_GET, HTTPREQ_HEAD, HTTPREQ_POST, HTTPREQ_POST_FORM, HTTPREQ_PUT, UserDefined::httpversion, UserDefined::ignorecl, UserDefined::in, UserDefined::include_header, UserDefined::infilesize, UserDefined::ioctl, UserDefined::ioctl_client, UserDefined::ip_version, UserDefined::key, UserDefined::key_passwd, UserDefined::key_type, UserDefined::krb, UserDefined::krb_level, UserDefined::localport, UserDefined::localportrange, UserDefined::low_speed_limit, UserDefined::low_speed_time, UserDefined::max_filesize, UserDefined::max_recv_speed, UserDefined::max_send_speed, UserDefined::maxredirs, UserDefined::netrc_file, UserDefined::new_directory_perms, UserDefined::new_file_perms, UserDefined::no_signal, NULL, UserDefined::opt_no_body, UserDefined::out, PGRS_HIDE, UserDefined::postfields, UserDefined::postfieldsize, UserDefined::postquote, UserDefined::prefer_ascii, UserDefined::prequote, UserDefined::private_data, SessionHandle::progress, UserDefined::progress_client, UserDefined::proxy, UserDefined::proxyauth, UserDefined::proxyport, UserDefined::proxytype, UserDefined::proxyuserpwd, UserDefined::quote, ssl_config_data::random_file, DynamicStatic::referer, DynamicStatic::referer_alloc, UserDefined::reuse_forbid, UserDefined::reuse_fresh, ssl_config_data::sessionid, SessionHandle::set, UserDefined::set_range, UserDefined::set_referer, UserDefined::set_resume_from, UserDefined::set_url, SessionHandle::share, UserDefined::sockopt_client, UserDefined::ssh_auth_types, UserDefined::ssh_private_key, UserDefined::ssh_public_key, UserDefined::ssl, SessionHandle::state, strdup, strequal, UserDefined::tcp_nodelay, UserDefined::telnet_options, UserDefined::timecondition, UserDefined::timeout, UserDefined::timevalue, TRUE, UserDefined::tunnel_thru_httpproxy, UserDefined::upload, DynamicStatic::url, DynamicStatic::url_alloc, DynamicStatic::url_changed, UserDefined::use_netrc, UserDefined::use_port, UserDefined::useragent, UserDefined::userpwd, UserDefined::verbose, ssl_config_data::verifyhost, ssl_config_data::verifypeer, ssl_config_data::version, and UserDefined::writeheader.
Referenced by curl_easy_setopt().
1.5.6