Re: cvs commit: src/lib/libftpio ftpio.c

[ Available lists | Index of cvs-lib | Month of May 1998 | Week of 9 May 1998 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Mike Smith <mike@smith.net.au>
Date
9 May 1998 10:53:51
Subject
Re: cvs commit: src/lib/libftpio ftpio.c
Message-ID
199805090554.WAA00630@antipodes.cdrom.com


[ Hide this part ]
> > OK, I took a quick look at it last night. My approach so far is to
> > write a new library (libfetch) and integrate the code from fetch and
> > libftpio into it. The libfetch interface consists of two functions:
> >
> > FILE *fetchGetURL(char *URL, int flags);
> > FILE *fetchPutURL(char *URL, int flags);
> >
> > which work as you'd expect. The flags parameter is used to specify
> > options such as passive mode, text/binary mode, verbosity, possibly
> > also protocol version (HTTP 1.0 / HTTP 1.1).
>
> Sounds reasonable - so the flags will be the union of all possible
> options, e.g. everything from (contrived) FILE_SYMLINK to FTP_PASSIVE?
> Do we have less than 32 options in total? ;-)

Given that this looks a lot like fopen(), maybe use an option string
instead?

--
\\ Sometimes you're ahead, \\ Mike Smith
\\ sometimes you're behind. \\ mike@smith.net.au
\\ The race is long, and in the \\ msmith@freebsd.org
\\ end it's only with yourself. \\ msmith@cdrom.com



Elapsed time: 0.152 seconds