168
|
1 /*****************************************************************************/
|
|
2 /* httpcommon.h - common data structures for RFC2068 and HTTPS */
|
|
3 /* Copyright (C) 1998-2003 Brian Masney <masneyb@gftp.org> */
|
|
4 /* */
|
|
5 /* This program is free software; you can redistribute it and/or modify */
|
|
6 /* it under the terms of the GNU General Public License as published by */
|
|
7 /* the Free Software Foundation; either version 2 of the License, or */
|
|
8 /* (at your option) any later version. */
|
|
9 /* */
|
|
10 /* This program is distributed in the hope that it will be useful, */
|
|
11 /* but WITHOUT ANY WARRANTY; without even the implied warranty of */
|
|
12 /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
|
|
13 /* GNU General Public License for more details. */
|
|
14 /* */
|
|
15 /* You should have received a copy of the GNU General Public License */
|
|
16 /* along with this program; if not, write to the Free Software */
|
|
17 /* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
|
18 /*****************************************************************************/
|
|
19
|
|
20 /* $Id$ */
|
|
21
|
|
22 typedef struct rfc2068_params_tag
|
|
23 {
|
|
24 gftp_getline_buffer * rbuf;
|
|
25 unsigned long read_bytes,
|
207
|
26 content_length;
|
|
27 long chunk_size;
|
209
|
28 unsigned int chunked_transfer : 1,
|
|
29 eof : 1;
|
168
|
30 ssize_t (*real_read_function) ( gftp_request * request,
|
|
31 void *ptr,
|
|
32 size_t size,
|
|
33 int fd );
|
303
|
34 int read_ref_cnt;
|
168
|
35
|
207
|
36 char * extra_read_buffer;
|
|
37 size_t extra_read_buffer_len;
|
168
|
38 } rfc2068_params;
|
|
39
|
|
40 int rfc2068_get_next_file ( gftp_request * request,
|
|
41 gftp_file * fle,
|
|
42 int fd );
|
|
43
|
|
44
|