🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
2 messages
2 total messages Started by Darek M. Thu, 24 Jan 2002 20:39
writing Perl nntp client, need help with header retrieval
#56221
Author: Darek M.
Date: Thu, 24 Jan 2002 20:39
14 lines
1602 bytes
What is the most efficient way to get headers from a given group?

I am not good enough of a programmer to look through sources of open
source clients, but I am looking at the moment at using threads in my
little Perl search engine.

I would have 10 threads, each would accept a range of article numbers,
and would download the headers and return an array or hash,

That is unless anyone is familiar with a "suck" function that returns
all headers, or a better module than Net::NNTP.

Am I on the right path?
Re: writing Perl nntp client, need help with header retrieval
#56223
Author: Andy Green
Date: Thu, 24 Jan 2002 22:18
27 lines
1984 bytes
> (Darek M.):
>What is the most efficient way to get headers from a given group?

XOVER is your man.

>I would have 10 threads, each would accept a range of article numbers,
>and would download the headers and return an array or hash,

This would probably be considered a bad thing.  There is a 
recommendation at

 http://www.gnksa.org/gnksa.txt 

that news clients limit themselves to 4 simultaneous connections to the 
server; my ISP news server will reject connection attempts after the 
third to the same IP.

Will ten threads get you your headers any faster?  If your ISP news 
server can saturate your pipe with headers on one connection (and mine 
can on my cable modem) the answer is 'no'.

-Andy
-- 
Posted using Nographer - News in your Browser
http://www.nographer.com - Now Usenet is a Website

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