🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
4 messages
4 total messages Started by Zach Peine Tue, 29 Feb 2000 00:00
Questions on newsfeeds types
#44624
Author: Zach Peine
Date: Tue, 29 Feb 2000 00:00
23 lines
1283 bytes
I'm rather new to NNTP and have been thinking about writing a server
that will work in NT since all others seem to have high prices.

I've read RFCs 977 and understand IHAVE, but am interested in learning
about other newsfeed methods.  What exactly is meant by stream, suck,
or any other methods?

I'm also interested in any other commonly used commands not specified
in RFC 977.

If you can, please explain or send me URLs where these methods are
specified.

Thanks

--
Zach[Peine]


Sent via Deja.com http://www.deja.com/
Before you buy.

Re: Questions on newsfeeds types
#44621
Author: Curt Welch
Date: Tue, 29 Feb 2000 00:00
71 lines
3599 bytes
Zach Peine <zach256@my-deja.com> wrote:
> I'm rather new to NNTP and have been thinking about writing a server
> that will work in NT since all others seem to have high prices.

:)

I think there are some free/cheap NT servers around.  Don't know
anything about them so I can't give you any pointers.

Are you trying to just make a small personal low-volume server
or something that can handle a real load.  The first might be fun
and easy to hack out.  The second will take a lot of work.

> I've read RFCs 977 and understand IHAVE, but am interested in learning
> about other newsfeed methods.  What exactly is meant by stream, suck,
> or any other methods?

Streaming is when "MODE STREAM", "CHECK" and "TAKETHIS" are used to
feed articles instead of IHAVE.  They allow the feeding system to
feed articles much faster on a single stream.

With IHAVE, the sending system has to wait for the receiving system
to respond before it knows whether to send each article.  With CHECK
and TAKETHIS, it doesn't.  "MODE STREAM" is used to see if the receiving
system is willing to support a streaming feed (and to tell it you are
about to start one).  CHECK is used to ask if the system wants
the article and TAKETHIS is used to send it.  IHAVE is the old stanard
that everyone supports, but is too slow for a large feed unless you
can support a ton of parallel connections.  Most (all) feeders will
use IHAVE if the receiving site rejects the MODE STREAM.

"real" feeds are always IHAVE and streaming feed. With those, the
sending side is controling what's beeing offered.

suck feeds is when a server uses the NNTP reading commands (ones
normally only used by the newsreader), to pull articles one at a
time from the other system.  Suck feeds sometimes use the NEWNEWS
command to figure out what to suck -- but many times, NEWNEWS
isn't available because it's a real resouce hog on many systems.

Writing code to do a suck feed is generally more complex than a straight
and simple IHAVE or streaming feed.  And sucking feeds just don't work
well for large volume feeding, but they have lots of advanrages for
small feeds.

One advantage is that you can do if you have normal user access to
a news server -- assuming the load you put on it isn't more than an
normal reader.

> I'm also interested in any other commonly used commands not specified
> in RFC 977.

Get a copy of inn.  read the source.

> If you can, please explain or send me URLs where these methods are
> specified.

Lots of stuff around.
Read the articles in this group.

The USEFOR page has lots of good stuff to start with:

http://www.landfield.com/usefor/

> Thanks

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/

Re: Questions on newsfeeds types
#44661
Author: Zach Peine
Date: Wed, 01 Mar 2000 00:00
21 lines
1485 bytes
In article <20000229174537.212$3B@newsreader.com>,
  curt@kcwc.com (Curt Welch) wrote:

> Streaming is when "MODE STREAM", "CHECK" and "TAKETHIS" are used to
> feed articles instead of IHAVE.  They allow the feeding system to
> feed articles much faster on a single stream.
>
I still need to make sure I have this stream thing.  It's full duplex,
meaning that both sides transmit at the same time, right?  Am I right
in thinking that it would require two threads and that it would be most
efficient to use all the CHECKs together so that the sender would not
have to wait for replies?

--
Zach[Peine]


Sent via Deja.com http://www.deja.com/
Before you buy.

Re: Questions on newsfeeds types
#44664
Author: Curt Welch
Date: Wed, 01 Mar 2000 00:00
63 lines
3402 bytes
Zach Peine <zach256@my-deja.com> wrote:
> In article <20000229174537.212$3B@newsreader.com>,
>   curt@kcwc.com (Curt Welch) wrote:
>
> > Streaming is when "MODE STREAM", "CHECK" and "TAKETHIS" are used to
> > feed articles instead of IHAVE.  They allow the feeding system to
> > feed articles much faster on a single stream.
> >
> I still need to make sure I have this stream thing.  It's full duplex,
> meaning that both sides transmit at the same time, right?

Right.  That's how TCP/IP works.  Both sides are compleley independent
of each other.

> Am I right
> in thinking that it would require two threads

Just one on the server side can work.  But optimizing performance
of news server is a very OS dependent thing and you might play
all sorts of complex games with multiple threads to do that.

When the server receives a CHECK <messages-id> it does a lookup
in it's history file (a database of past message-id it's already
received), and then respons with a YES I want that new article
or NO I don't back to the client.

When the server recieves a TAKETHIS, an article will always follow,
so you read the article, look at it and figure out if you really
want or not, and then save it.

You just loop doing those two things in a single thread.

> and that it would be most
> efficient to use all the CHECKs together so that the sender would not
> have to wait for replies?

The client will start by sending a bunch of checks (lets just say 5).
It then waits for your responses to start comming back.  YOu have do
do a history lookup for each one, so there may be a short delays as
they come back.

For each NO response, you just cross that article of the todo list.  For
each yes response, you then send the associated article with a TAKETHIS
command.

But at the same time, each time the client gets a response back, it
sends a new CHECK command.  That way, you've always got 5 checks either
in transit or in the server's input queue waiting to be processed.

The whole point of this is just to remove the transmission delays from
the process.  Whenever the server is done doing a check or a takethis,
it doesn't have to wait for the client to send the next thing, it's already
sitting in the TCP/IP input queue waiting for the server to pick it up and
work on it.

Writing the client side of a streaming feed is a lot more complex than
writting the server side.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads