From owner-cvs-lib Sat May 9 10:53:51 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA05003 for cvs-lib-outgoing; Sat, 9 May 1998 10:53:51 -0700 (PDT) (envelope-from owner-cvs-lib) Received: from antipodes.cdrom.com (a07m.cet.co.jp [202.32.65.71]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA04948; Sat, 9 May 1998 10:53:34 -0700 (PDT) (envelope-from mike@antipodes.cdrom.com) Received: from antipodes.cdrom.com (localhost [127.0.0.1]) by antipodes.cdrom.com (8.8.8/8.8.5) with ESMTP id WAA00630; Fri, 8 May 1998 22:54:00 -0700 (PDT) Message-Id: <199805090554.WAA00630@antipodes.cdrom.com> X-Mailer: exmh version 2.0zeta 7/24/97 To: "Jordan K. Hubbard" cc: dag-erli@ifi.uio.no (Dag-Erling Coidan =?iso-8859-1?Q?Sm=F8rgrav?= ), Julian Elischer , cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: Re: cvs commit: src/lib/libftpio ftpio.c In-reply-to: Your message of "Fri, 08 May 1998 03:10:18 PDT." <20258.894622218@time.cdrom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 08 May 1998 22:54:00 -0700 From: Mike Smith Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > 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