transfer.h
Go to the documentation of this file.
00001 #ifndef HEADER_CURL_TRANSFER_H
00002 #define HEADER_CURL_TRANSFER_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 void Curl_init_CONNECT(struct Curl_easy *data);
00026 
00027 CURLcode Curl_pretransfer(struct Curl_easy *data);
00028 CURLcode Curl_second_connect(struct connectdata *conn);
00029 CURLcode Curl_posttransfer(struct Curl_easy *data);
00030 
00031 typedef enum {
00032   FOLLOW_NONE,  /* not used within the function, just a placeholder to
00033                    allow initing to this */
00034   FOLLOW_FAKE,  /* only records stuff, not actually following */
00035   FOLLOW_RETRY, /* set if this is a request retry as opposed to a real
00036                           redirect following */
00037   FOLLOW_REDIR, /* a full true redirect */
00038   FOLLOW_LAST   /* never used */
00039 } followtype;
00040 
00041 CURLcode Curl_follow(struct Curl_easy *data, char *newurl,
00042                      followtype type);
00043 CURLcode Curl_readwrite(struct connectdata *conn,
00044                         struct Curl_easy *data, bool *done,
00045                         bool *comeback);
00046 int Curl_single_getsock(const struct connectdata *conn,
00047                         curl_socket_t *socks,
00048                         int numsocks);
00049 CURLcode Curl_readrewind(struct connectdata *conn);
00050 CURLcode Curl_fillreadbuffer(struct connectdata *conn, int bytes, int *nreadp);
00051 CURLcode Curl_retry_request(struct connectdata *conn, char **url);
00052 bool Curl_meets_timecondition(struct Curl_easy *data, time_t timeofdoc);
00053 
00054 /* This sets up a forthcoming transfer */
00055 void
00056 Curl_setup_transfer (struct connectdata *data,
00057                int sockindex,           /* socket index to read from or -1 */
00058                curl_off_t size,         /* -1 if unknown at this point */
00059                bool getheader,          /* TRUE if header parsing is wanted */
00060                curl_off_t *bytecountp,  /* return number of bytes read */
00061                int writesockindex,      /* socket index to write to, it may
00062                                            very well be the same we read from.
00063                                            -1 disables */
00064                curl_off_t *writecountp /* return number of bytes written */
00065 );
00066 
00067 #endif /* HEADER_CURL_TRANSFER_H */
00068 


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