🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #57995

Re: A better way to post binaries

#57995
From: Juergen Helbing
Date: Mon, 08 Apr 2002 07:38
37 lines
2240 bytes
Jeremy <jeremy@exit109.com> wrote:

>Well, if you're writing a module which simply takes a stream on input
>and sends back an encoded stream, you have to wait until you have all
>of the data before you write any output, because until you do, you don't
>know the size.  

Did you plan to encode very small fractions (100-1000 bytes)
with every encoder call ?

>Which has the additional downside that you have to store
>all of the encoded data, rather than discarding it as you process it, so
>you've either got the entire encoded file in another memory buffer, or
>you have to use tempfiles or something like that.  

The maximum size for a message ca be considered to be 1 Meg.
Having two buffers with each 1 Meg might be acceptable.

>You also have to have
>a way to get the filename into the module.

You need this also for the subject line.

>It'll get worse with multiparts, because the stuff that has to go into
>the =ypart line simply won't be available to such a module, so you have
>to go and change the API from "send a stream, get back an encoded stream"
>to something else.

It would be nice if you could explain your "API" in more detail.
I always thought that an external API would encode the full data
for one message.

Perhaps we have another nice misunderstanding here :-)
-- 
Juergen

Technical Details
Message-ID: <36389.842204@archiver.winews.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!paloalto-snf1.gtei.net!paloalto-snh1.gtei.net!news.gtei.net!news.alt.net!usenet
References: <1017777829.201228@ok-corral.gunslinger.net> <a8m05q$t53tq$1@ID-26705.news.dfncis.de> <1018133305.356462@ok-corral.gunslinger.net> <060420022326598175%planb@newsreaders.com> <1018166203.925720@ok-corral.gunslinger.net>

Show Full Headers
Complete Article Headers
Message-ID: <36389.842204@archiver.winews.net>
Subject: Re: A better way to post binaries
Date: Mon, 08 Apr 2002 07:38:36 +0000
From: archiver@i3w.com (Juergen Helbing)
References: <1017777829.201228@ok-corral.gunslinger.net> <a8m05q$t53tq$1@ID-26705.news.dfncis.de> <1018133305.356462@ok-corral.gunslinger.net> <060420022326598175%planb@newsreaders.com> <1018166203.925720@ok-corral.gunslinger.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!paloalto-snf1.gtei.net!paloalto-snh1.gtei.net!news.gtei.net!news.alt.net!usenet
Newsgroups: news.software.nntp
Organization: Altopia Corp. - Usenet Access - http://www.altopia.com
Lines: 36
X-Newsreader: MyNews