Article View: news.software.readers
Article #82380Re: nntp Software Inadequacy
From: Curt Welch
Date: Thu, 02 Aug 2001 20:40
Date: Thu, 02 Aug 2001 20:40
99 lines
6157 bytes
6157 bytes
tribalzidane@earthlink.net wrote: > I use Agent 1.8 and as everyone knows, you can't access multiple servers > directly without multiple instances of Agent. > I decided to try to find > software that would act as a local virtual news server, > But my question is about the server commands listed here: > > http://www.newsreaders.com/misc/pipelining.html For better information on NNTP, check out all the links to the RFCs and other documents at: http://www.landfield.com/usefor/ Also, for NNTP, qustions and information about servers, the group news.software.nntp is a better place to go to. > I know these commands could surely be used in a Visual Basic program, > but am I going to have to actually write something to interpret the > protocols, or are there some "plug-ins" for Visual Basic which already > have the ability to interpret the NNTP commands? I don't know anything about VB so I can't help you there. But, if you are trying to do something as complex as a virtual server, you probably will need to do all the code yourself to deal with the protocol. If you do find plug-ins, it will probably just be for the client side, and not the server side. For your project, you will have to do both, and they will have to work together at the same time. Not a simple thing. > And you programmers out there, just so I can judge how "complex" > something like this might be to write, how long do you think it would > take you to write a program like this? Some things like this can get started in days. i.e. it will be showing sign of "life" very quickly. To get it really working well and dealig with everything you need it to do could take years. The virual server idea you have is not as easy as you would expect it to be. That's why you can't find software which does what you want. It can't be done. The problem is a result of the way the NNTP protocol works. When an article shows up on a server, it gets assigned to the correct groups based on the Newsgroups: header. When that happens, the server gives it a unique article number in that group. That article number is local to that server only. These article numbers are assigned staring at 1, and they simply count up forever. Each new article that shows up for the group gets assigned the next higher number. Newsreaders use this fact to figure out what's new on the server. If the last time they checked the server, the highest article for group x.y.z was 1000, then when they come back and check again, and find the high number is now 1350, then know that 350 new articles have shown up. When you get headers, you use the xover command. It returns the header information for the articles by article number on that server. So it say article 10034 is headers.., article 10035 has headers ..., etc. Before you use the XOVER command, the client issues the GROUP command to set the group. But the group command then returns the current low article number, the current high article number, and the total number of articles in the group. When a program like agent connects to the server to check for new articles, the first comman it will issue is the group command. It will then issue things like XOVER commands for the range of articles it needs based on what it was told by the GROUP command. When you try to combine multiple servers into one with your "virtual server", you will have to create your own local article numbers. You can't use the article numbers from any of your downstream servers. And when agent connects and issues a "GROUP news.software.readers" command, your server has to already have the correct answer to that question. It has to know what the current high article number is for your server, which means it has to have already figured out how many new articles there are on all the servers it's trying to act as a virtual server for. The only way to do that, is to download all the headers from all the severs, then sort though them and figure out which articles are duplicates and which are not. You then have to build your own local database which maps your local article numbers into the server/article numbers of the remote server. And you have to store all the headers locally so that when agent asks for them, you can get them easilly. You could fetch them one at a time from the remote servers, but that would be so slow as to be mostly unworkable. So, because of the article number problem, you can't just wait for agent to connect and ask for a group before you start downloading the data from the other servers. You have to do it all ahead of time. This is why all the programs you checked out do that. Not because the programmers who wrote them were stupid, but because there are no simple answers to what you want. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Technical Details
Message-ID:
<20010802164042.176$E3@newsreader.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.uchicago.edu!yellow.newsread.com!netaxs.com!newsread.com!feeder.qis.net!feed2.onemain.com!feed1.onemain.com!feed1.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mailReferences:
<u71jmt4omd1m09n2dab2m68p4dkdbcee87@4ax.com>Show Full Headers
Complete Article Headers
Message-ID: <20010802164042.176$E3@newsreader.com>
Subject: Re: nntp Software Inadequacy
Date: Thu, 02 Aug 2001 20:40:42 +0000
From: curt@kcwc.com (Curt Welch)
References: <u71jmt4omd1m09n2dab2m68p4dkdbcee87@4ax.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.uchicago.edu!yellow.newsread.com!netaxs.com!newsread.com!feeder.qis.net!feed2.onemain.com!feed1.onemain.com!feed1.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.readers,microsoft.public.vb.controls.internet
X-Trace: NewsReader.Com G6feqYII6NxXT-Ml8dQyBfo8gZenp_yfJGZ7pxoS-1nn4VRV3
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5
%IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Lines: 98