3 /*****************************************************************************
5 * Project ___| | | | _ \| |
7 * | (__| |_| | _ <| |___
8 * \___|\___/|_| \_\_____|
10 * Copyright (C) 2000, Daniel Stenberg, <daniel@haxx.se>, et al.
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.
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.
20 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
21 * KIND, either express or implied.
24 *****************************************************************************/
25 CURLcode curl_transfer(CURL *curl);
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 */
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)