multiif.h
Go to the documentation of this file.
00001 #ifndef HEADER_CURL_MULTIIF_H
00002 #define HEADER_CURL_MULTIIF_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 
00025 /*
00026  * Prototypes for library-wide functions provided by multi.c
00027  */
00028 void Curl_expire(struct Curl_easy *data, time_t milli);
00029 void Curl_expire_clear(struct Curl_easy *data);
00030 void Curl_expire_latest(struct Curl_easy *data, time_t milli);
00031 bool Curl_pipeline_wanted(const struct Curl_multi* multi, int bits);
00032 void Curl_multi_handlePipeBreak(struct Curl_easy *data);
00033 
00034 /* Internal version of curl_multi_init() accepts size parameters for the
00035    socket and connection hashes */
00036 struct Curl_multi *Curl_multi_handle(int hashsize, int chashsize);
00037 
00038 /* the write bits start at bit 16 for the *getsock() bitmap */
00039 #define GETSOCK_WRITEBITSTART 16
00040 
00041 #define GETSOCK_BLANK 0 /* no bits set */
00042 
00043 /* set the bit for the given sock number to make the bitmap for writable */
00044 #define GETSOCK_WRITESOCK(x) (1 << (GETSOCK_WRITEBITSTART + (x)))
00045 
00046 /* set the bit for the given sock number to make the bitmap for readable */
00047 #define GETSOCK_READSOCK(x) (1 << (x))
00048 
00049 #ifdef DEBUGBUILD
00050  /*
00051   * Curl_multi_dump is not a stable public function, this is only meant to
00052   * allow easier tracking of the internal handle's state and what sockets
00053   * they use. Only for research and development DEBUGBUILD enabled builds.
00054   */
00055 void Curl_multi_dump(struct Curl_multi *multi);
00056 #endif
00057 
00058 void Curl_multi_process_pending_handles(struct Curl_multi *multi);
00059 
00060 /* Return the value of the CURLMOPT_MAX_HOST_CONNECTIONS option */
00061 size_t Curl_multi_max_host_connections(struct Curl_multi *multi);
00062 
00063 /* Return the value of the CURLMOPT_CONTENT_LENGTH_PENALTY_SIZE option */
00064 curl_off_t Curl_multi_content_length_penalty_size(struct Curl_multi *multi);
00065 
00066 /* Return the value of the CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE option */
00067 curl_off_t Curl_multi_chunk_length_penalty_size(struct Curl_multi *multi);
00068 
00069 /* Return the value of the CURLMOPT_PIPELINING_SITE_BL option */
00070 struct curl_llist *Curl_multi_pipelining_site_bl(struct Curl_multi *multi);
00071 
00072 /* Return the value of the CURLMOPT_PIPELINING_SERVER_BL option */
00073 struct curl_llist *Curl_multi_pipelining_server_bl(struct Curl_multi *multi);
00074 
00075 /* Return the value of the CURLMOPT_MAX_TOTAL_CONNECTIONS option */
00076 size_t Curl_multi_max_total_connections(struct Curl_multi *multi);
00077 
00078 void Curl_multi_connchanged(struct Curl_multi *multi);
00079 
00080 /*
00081  * Curl_multi_closed()
00082  *
00083  * Used by the connect code to tell the multi_socket code that one of the
00084  * sockets we were using is about to be closed.  This function will then
00085  * remove it from the sockethash for this handle to make the multi_socket API
00086  * behave properly, especially for the case when libcurl will create another
00087  * socket again and it gets the same file descriptor number.
00088  */
00089 
00090 void Curl_multi_closed(struct connectdata *conn, curl_socket_t s);
00091 
00092 /*
00093  * Add a handle and move it into PERFORM state at once. For pushed streams.
00094  */
00095 CURLMcode Curl_multi_add_perform(struct Curl_multi *multi,
00096                                  struct Curl_easy *data,
00097                                  struct connectdata *conn);
00098 #endif /* HEADER_CURL_MULTIIF_H */


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