3 /*****************************************************************************
5 * Project ___| | | | _ \| |
7 * | (__| |_| | _ <| |___
8 * \___|\___/|_| \_\_____|
10 * The contents of this file are subject to the Mozilla Public License
11 * Version 1.0 (the "License"); you may not use this file except in
12 * compliance with the License. You may obtain a copy of the License at
13 * http://www.mozilla.org/MPL/
15 * Software distributed under the License is distributed on an "AS IS"
16 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
17 * License for the specific language governing rights and limitations
20 * The Original Code is Curl.
22 * The Initial Developer of the Original Code is Daniel Stenberg.
24 * Portions created by the Initial Developer are Copyright (C) 1998.
25 * All Rights Reserved.
27 * ------------------------------------------------------------
29 * - Daniel Stenberg <Daniel.Stenberg@haxx.nu>
40 * ------------------------------------------------------------
41 ****************************************************************************/
43 Transfer (struct connectdata *data,
44 int sockfd, /* socket to read from or -1 */
45 int size, /* -1 if unknown at this point */
46 bool getheader, /* TRUE if header parsing is wanted */
47 long *bytecountp, /* return number of bytes read */
48 int writesockfd, /* socket to write to, it may very well be
49 the same we read from. -1 disables */
50 long *writebytecountp /* return number of bytes written */