🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #54263

Re: Local connect to INN in server mode?

#54263
From: Jerome Kaidor
Date: Wed, 19 Sep 2001 03:33
45 lines
2797 bytes
In article <yl4rq0neke.fsf@windlord.stanford.edu>,
Russ Allbery  <rra@stanford.edu> wrote:
>Jerome Kaidor <jerryk@best.com> writes:
>
>> It seems that both of these packages require an NNTP connection that can
>> do "server mode".  INN uses nnrpd to monitor TCP port 119, and nnrpd
>> only does "reader mode".
>
>That's not a normal configuration of INN.
>
>> Is there a way to tell INN to listen on a second port "itself", without
>> using nnrpd?
>
>Yes, following the standard INN installation procedure will cause innd to
>listen on port 119 and hand reading connections off to nnrpd while
>handling feed connections internally.
>
*** How does it know the difference between a reader and a feed?   Seems to
me that one tcp connect ( from localhost on port 119 ) looks much like
another, until the connecting process ( or person ) starts sending text.

( use the source, Luke.... )

   In rc.c, I find : 
------- snip ----------------------------
    /* See if it's one of our servers. */
    for (name = NULL, rp = RCpeerlist, i = RCnpeerlist; --i >= 0; rp++)
        if (rp->Address.s_addr == remote.sin_addr.s_addr) {
            name = rp->Name;
            break;
        }

    /* If not a server, and not allowing anyone, hand him off unless
       not spawning nnrpd in which case we return an error. */
----------- endsnip ---------------------

...sounds pretty much like the behavior I described.  How can it know the
difference?  Although I think I can see how to make my thing work - just
add a test for the socket # to the loop where it's looking for a peer.  But
that would be a hack....  I'm sure it works as you say, I just don't 
understand how.

                                  - Jerry Kaidor

Technical Details
Message-ID: <tmUp7.24195$Up.467469@sea-read.news.verio.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!newsfeed.google.com!newsfeed.stanford.edu!headwall.stanford.edu!newsfeed.media.kyoto-u.ac.jp!sjc-peer.news.verio.net!news.verio.net!sea-read.news.verio.net.POSTED!not-for-mail
References: <llQp7.24174$Up.466831@sea-read.news.verio.net> <yl4rq0neke.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <tmUp7.24195$Up.467469@sea-read.news.verio.net>
Subject: Re: Local connect to INN in server mode?
Date: Wed, 19 Sep 2001 03:33:45 GMT
From: jerryk@best.com (Jerome Kaidor)
References: <llQp7.24174$Up.466831@sea-read.news.verio.net> <yl4rq0neke.fsf@windlord.stanford.edu>
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!newsfeed.google.com!newsfeed.stanford.edu!headwall.stanford.edu!newsfeed.media.kyoto-u.ac.jp!sjc-peer.news.verio.net!news.verio.net!sea-read.news.verio.net.POSTED!not-for-mail
Newsgroups: news.software.nntp
Organization: a user of Best Internet Communications, Inc. www.best.com
Lines: 44
NNTP-Posting-Host: 206.184.139.144
X-Complaints-To: abuse@verio.net
X-Trace: sea-read.news.verio.net 1000870425 206.184.139.144 (Wed, 19 Sep 2001 03:33:45 GMT)
NNTP-Posting-Date: Wed, 19 Sep 2001 03:33:45 GMT