Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 08 May 1998 22:54:00 -0700
From:      Mike Smith <mike@smith.net.au>
To:        "Jordan K. Hubbard" <jkh@time.cdrom.com>
Cc:        dag-erli@ifi.uio.no (Dag-Erling Coidan =?iso-8859-1?Q?Sm=F8rgrav?= ), Julian Elischer <julian@FreeBSD.ORG>, cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG
Subject:   Re: cvs commit: src/lib/libftpio ftpio.c 
Message-ID:  <199805090554.WAA00630@antipodes.cdrom.com>
In-Reply-To: Your message of "Fri, 08 May 1998 03:10:18 PDT." <20258.894622218@time.cdrom.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> > 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



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199805090554.WAA00630>