pullnews and Net:NNTP
Julien ÉLIE
julien at trigofacile.com
Mon Apr 28 08:55:12 UTC 2008
> There is now "unless(exists $arg{Reader} && $arg{Reader} == 0)" before
> the call to $obj->reader().
>
> - my %localopts = ("Port" => "$localPort");
> + my %localopts = ("Port" => "$localPort", "Reader" => 0);
> $localcxn = Net::NNTP->new($localServer, %localopts) ||
> die "can't connect to server $localServer\n" ;
>
> but it is not necessary.
It is in fact necessary to add the "Reader" => 0 option.
It is an "unless" statement!
> For the anecdote, I wrote to Graham Barr because of his libnet man page:
>
> B<Reader> - If the remote server is INN then initially the connection
> will be to nnrpd, by default C<Net::NNTP> will issue a C<MODE READER> command
> so that the remote server becomes innd. If the C<Reader> option is given
> with a value of zero, then this command will not be sent and the
> connection will be left talking to nnrpd.
>
>
> It is not the default behaviour of Net::NNTP. Besides, there is a confusion
> between innd and nnrpd.
It is the default behaviour but there is still innd<->nnrpd to change.
--
Julien ÉLIE
« Si l'art n'a pas de patrie, les artistes en ont une. » (Camille Saint-Saëns)
More information about the inn-workers
mailing list