🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #26772

Re: Q: XHDR and XOVER

#26772
From: Fluffy
Date: Wed, 11 Mar 1998 00:00
40 lines
2342 bytes
Simon R Knight <srk@bigfoot.com> wrote:
: I recently located a web site:
: 
: http://www.mibsoftware.com/userkt/0099.htm
: 
:   ... which has collected some interesting NNTP related info.

Yup, he's got a nifty collection of information there.  If you really want
to learn about the nuts and bolts of what goes on inside a news server, I
also highly recommend downloading the source code for C News and the
so-called reference NNTP implementation.

Even though the most common server today is INN, the C News sources have
*much* better comments and documentation, and do a good job of explaining
why news servers do a lot of bizarre things that don't seem to make sense.
INN was sort of built with the assumption that you already understood C
News, and a few INN bits like overview and the history index are direct
descendants.

The official home of C News is
ftp://ftp.cs.toronto.edu/pub/c-news/c-news.tar.Z -- they request that you
restrict your downloads to the evenings.

Reference NNTP can be found at
ftp://ftp.academ.com/pub/nntp1.5/nntp.1.5.12.2.tar.gz

You probably won't be able to do much with either of these unless you have a
Unix machine available.

: Tonight
: I am planning to write some code to parse the data returned via XOVER,
: and I have a set a buffer of 2048 bytes for each line. In view of the
: length of some of these XOVER lines, is 2048 bytes about right, or is
: it over-kill ?

Can you use a heap or something instead?  The references in particular can
grow to outlandish sizes, and I think that 2K may cause you grief.

Technical Details
Message-ID: <slrn6gc82o.p7k.fluffy@fluffy.meow.org>
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!not-for-mail
References: <350360c6.17001868@news.tcp.co.uk> <EpJEF4.E0x@spcuna.spc.edu> <350bb4e4.2706429@news.tcp.co.uk>

Show Full Headers
Complete Article Headers
Message-ID: <slrn6gc82o.p7k.fluffy@fluffy.meow.org>
Subject: Re: Q: XHDR and XOVER
Date: Wed, 11 Mar 1998 00:00:00 +0000
From: fluffy@meow.org (Fluffy)
References: <350360c6.17001868@news.tcp.co.uk> <EpJEF4.E0x@spcuna.spc.edu> <350bb4e4.2706429@news.tcp.co.uk>
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!not-for-mail
X-Deja-AN: 332872145
Sender: news@fluffy.meow.org (Fluffy Owns Me)
X-Meow: Meow
X-Bozo: yes
Mail-Copies-To: never
Organization: Usenet, a division of Meow Industries
Newsgroups: news.software.nntp
X-Meowserver-Date: 11 Mar 1998 05:25:44 GMT