🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #57092

Re: NNTP protocol?

#57092
From: The Archiver
Date: Thu, 07 Mar 2002 08:15
60 lines
2584 bytes
"Lukaszek N." <ask.me@if.you.must.know> wrote:

>I think this question is in the FAQ (if there is some) so, please answer or
>give me a FAQ address.
>I'm looking for a NNTP protocol - described as well as it possible.
>I want to write (just a try ;) simple (very) nntp server - just for fun.

- - - - - 

RFC977
RFC2980
USEFOR-mailing list & drafts
NNTP-Ext-mailing list & drafts

Read This Before You Write a Newsreader, News Transport System, etc. 
    By Tom Limoncelli Version 1.12. Updated 1995-03-30   (still valid)

"How to become a Usenet site" (FAQ on the newsgroups)

The "Hamster" news-server.
The MyNews-Server:  http://www.winews.net

- - - - - 

Welcome to the news-server-programmers.

Just a few additional tips.   These are personal experiences, 
because I've written a news-server myself from scratch:

If you are not interested in writing software for 2-3 years, then
get the "Hamster" news-server-software.
This is freeware - the sources are available - and a large team
of programmers is working on them all the time.
They would be happy to have more manpower.


If you _want_ to write the news-server then here the basic pitfalls:

* Care about expiry for every file you create from the beginning.
  (Later it is a PITA)
* Also take care about 'repair' (reconstruction) of everything
  in case of crashes. 
* Dont write messages to single files or to one file/newsgroup.
  You need large files.
* Care about hanging & closing sockets all the time.
  Use timeouts - and be prepared that they happen all the time.
* Dont open & close connections all the time.
* Never rely on a specific size for data/lines/messages.
  Even 8 kB in one (header) line happens. 
  And even 10 MB large messages are coming in.
* Take care about FQDNs and Message-ID creation.

Good luck.

-- 
The Archiver
-------------------------------
www.winews.net

Technical Details
Message-ID: <19159.732202@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!logbridge.uoregon.edu!uunet!sea.uu.net!news.alt.net!usenet
References: <a65ovr$i5g$1@news.tpi.pl>

Show Full Headers
Complete Article Headers
Message-ID: <19159.732202@archiver.winews.net>
Subject: Re: NNTP protocol?
Date: Thu, 07 Mar 2002 08:15:19 +0000
From: archiver@i3w.com (The Archiver)
References: <a65ovr$i5g$1@news.tpi.pl>
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!logbridge.uoregon.edu!uunet!sea.uu.net!news.alt.net!usenet
Newsgroups: news.software.nntp
Organization: Altopia Corp. - Usenet Access - http://www.altopia.com
Lines: 59
X-Newsreader: MyNews