Go to the documentation of this file.00001 #ifndef HEADER_CURL_URL_H
00002 #define HEADER_CURL_URL_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #include "curl_setup.h"
00025
00026
00027
00028
00029
00030 CURLcode Curl_init_do(struct Curl_easy *data, struct connectdata *conn);
00031 CURLcode Curl_open(struct Curl_easy **curl);
00032 CURLcode Curl_init_userdefined(struct UserDefined *set);
00033 CURLcode Curl_setopt(struct Curl_easy *data, CURLoption option,
00034 va_list arg);
00035 CURLcode Curl_dupset(struct Curl_easy * dst, struct Curl_easy * src);
00036 void Curl_freeset(struct Curl_easy * data);
00037 CURLcode Curl_close(struct Curl_easy *data);
00038 CURLcode Curl_connect(struct Curl_easy *, struct connectdata **,
00039 bool *async, bool *protocol_connect);
00040 CURLcode Curl_disconnect(struct connectdata *, bool dead_connection);
00041 CURLcode Curl_protocol_connect(struct connectdata *conn, bool *done);
00042 CURLcode Curl_protocol_connecting(struct connectdata *conn, bool *done);
00043 CURLcode Curl_protocol_doing(struct connectdata *conn, bool *done);
00044 CURLcode Curl_setup_conn(struct connectdata *conn,
00045 bool *protocol_done);
00046 void Curl_free_request_state(struct Curl_easy *data);
00047
00048 int Curl_protocol_getsock(struct connectdata *conn,
00049 curl_socket_t *socks,
00050 int numsocks);
00051 int Curl_doing_getsock(struct connectdata *conn,
00052 curl_socket_t *socks,
00053 int numsocks);
00054
00055 bool Curl_isPipeliningEnabled(const struct Curl_easy *handle);
00056 CURLcode Curl_addHandleToPipeline(struct Curl_easy *handle,
00057 struct curl_llist *pipeline);
00058 int Curl_removeHandleFromPipeline(struct Curl_easy *handle,
00059 struct curl_llist *pipeline);
00060 struct connectdata *
00061 Curl_oldest_idle_connection(struct Curl_easy *data);
00062
00063
00064 void Curl_getoff_all_pipelines(struct Curl_easy *data,
00065 struct connectdata *conn);
00066
00067 void Curl_close_connections(struct Curl_easy *data);
00068
00069 #define CURL_DEFAULT_PROXY_PORT 1080
00070 #define CURL_DEFAULT_HTTPS_PROXY_PORT 443
00071
00072
00073 CURLcode Curl_connected_proxy(struct connectdata *conn, int sockindex);
00074
00075 #ifdef CURL_DISABLE_VERBOSE_STRINGS
00076 #define Curl_verboseconnect(x) Curl_nop_stmt
00077 #else
00078 void Curl_verboseconnect(struct connectdata *conn);
00079 #endif
00080
00081 #define CONNECT_PROXY_SSL()\
00082 (conn->http_proxy.proxytype == CURLPROXY_HTTPS &&\
00083 !conn->bits.proxy_ssl_connected[sockindex])
00084
00085 #define CONNECT_FIRSTSOCKET_PROXY_SSL()\
00086 (conn->http_proxy.proxytype == CURLPROXY_HTTPS &&\
00087 !conn->bits.proxy_ssl_connected[FIRSTSOCKET])
00088
00089 #define CONNECT_SECONDARYSOCKET_PROXY_SSL()\
00090 (conn->http_proxy.proxytype == CURLPROXY_HTTPS &&\
00091 !conn->bits.proxy_ssl_connected[SECONDARYSOCKET])
00092
00093 #endif