url.h
Go to the documentation of this file.
00001 #ifndef HEADER_CURL_URL_H
00002 #define HEADER_CURL_URL_H
00003 /***************************************************************************
00004  *                                  _   _ ____  _
00005  *  Project                     ___| | | |  _ \| |
00006  *                             / __| | | | |_) | |
00007  *                            | (__| |_| |  _ <| |___
00008  *                             \___|\___/|_| \_\_____|
00009  *
00010  * Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
00011  *
00012  * This software is licensed as described in the file COPYING, which
00013  * you should have received as part of this distribution. The terms
00014  * are also available at https://curl.haxx.se/docs/copyright.html.
00015  *
00016  * You may opt to use, copy, modify, merge, publish, distribute and/or sell
00017  * copies of the Software, and permit persons to whom the Software is
00018  * furnished to do so, under the terms of the COPYING file.
00019  *
00020  * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
00021  * KIND, either express or implied.
00022  *
00023  ***************************************************************************/
00024 #include "curl_setup.h"
00025 
00026 /*
00027  * Prototypes for library-wide functions provided by url.c
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); /* opposite of curl_open() */
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 /* remove the specified connection from all (possible) pipelines and related
00063    queues */
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 /* default proxy port unless specified */
00070 #define CURL_DEFAULT_HTTPS_PROXY_PORT 443 /* default https proxy port unless
00071                                              specified */
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 /* HEADER_CURL_URL_H */


rc_visard_driver
Author(s): Heiko Hirschmueller , Christian Emmerich , Felix Ruess
autogenerated on Thu Jun 6 2019 20:43:07