download and highlevel are replaced with transfer
[platform/upstream/curl.git] / lib / transfer.h
1 #ifndef __TRANSFER_H
2 #define __TRANSFER_H
3 /*****************************************************************************
4  *                                  _   _ ____  _     
5  *  Project                     ___| | | |  _ \| |    
6  *                             / __| | | | |_) | |    
7  *                            | (__| |_| |  _ <| |___ 
8  *                             \___|\___/|_| \_\_____|
9  *
10  * Copyright (C) 2000, Daniel Stenberg, <daniel@haxx.se>, et al.
11  *
12  * In order to be useful for every potential user, curl and libcurl are
13  * dual-licensed under the MPL and the MIT/X-derivate licenses.
14  *
15  * You may opt to use, copy, modify, merge, publish, distribute and/or sell
16  * copies of the Software, and permit persons to whom the Software is
17  * furnished to do so, under the terms of the MPL or the MIT/X-derivate
18  * licenses. You may pick one of these licenses.
19  *
20  * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
21  * KIND, either express or implied.
22  *
23  * $Id$
24  *****************************************************************************/
25 CURLcode curl_transfer(CURL *curl);
26
27 CURLcode 
28 Curl_Transfer (struct connectdata *data,
29                int sockfd,              /* socket to read from or -1 */
30                int size,                /* -1 if unknown at this point */
31                bool getheader,          /* TRUE if header parsing is wanted */
32                long *bytecountp,        /* return number of bytes read */
33                int writesockfd,      /* socket to write to, it may very well be
34                                         the same we read from. -1 disables */
35                long *writebytecountp /* return number of bytes written */
36 );
37
38 #ifdef _OLDCURL
39 /* "hackish" define to make sources compile without too much human editing.
40    Don't use "Tranfer()" anymore! */
41 #define Transfer(a,b,c,d,e,f,g) Curl_Transfer(a,b,c,d,e,f,g)
42 #endif
43
44 #endif