🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #61315

Re: Custom Client Software - Sorry, Last item.

#61315
From: t.h.i.s.n.t.h.a.t DS
Date: Fri, 11 Oct 2002 16:32
110 lines
5748 bytes
bas,

i can say that i must agree with you. one point specifically, and a good 
one, was that if i chose a control, make sure the control is a quality 
control. there are so many out there that i personally would not have the 
time to evaluate them properly. and, you essentially have to know quite a 
bit about the protocol already to evaluate, is this a correct statement?

so i chose not using a control for more than one reason, and i guess i only 
asked that question for trying to get a general consensus.

1. a high quality control you (usually) have to pay good money for and 
since this is a personal project and not being done through a company, it 
has a budget of virtually $0.

2. it's nice to have a control that wraps all functionality into one easy 
to use package, but like i said, i did really want to learn the protocol.

3. the reader i'm coding is ultimately ending up to use the dreaded m-
word.....multi-thread download's, and therefore, i have more confidence 
that i will be able to get better (read more stable) result's writing my 
own code than trying to use an outside control in a multithreaded 
environment (no matter how multi-thread stable thay say it is, but as 
always, i may be wrong on this, won't know till it's done). this is also 
one of the reason's that i'm using all API for all winsock stuff too. As a 
matter of fact, there are also several other controls i passed up and am 
using all API to create them as well. One of them is the listview, because 
you can't stuff 100,000 groupnames in a listview (well you can, but it will 
takes up to several minutes to do so). so i implemented a 'virtual' 
listview thru API that can display any number of items instantaneously.

if you want talk about this anymore, i mean the programming techniques, 
just fix my e-mail address and let me know, because now i'm getting of 
topic from the group.


Thank you for your time,

DS




lordsnow@home.nl (Bas Ruiter) wrote in
<foi9qukid0eer6ee5ss7dnp62e0hii0jte@4ax.com>: 

>
>> > Am I going about this the wrong way in writing code to do this
>> > instead of using a readily available NNTP control?
>
>Once upon a time.. many moons ago.. I used Delphi 4 and the NetMaster
>NNTP control that came as standard with D4. I compared the NNTP RFC with
>the D4 NNTP control to see how wel it was implemented. I found out that
>not all NNTP stuff was implemented, which would mean I would have to
>add some code myself to implement these 'forgotten' things if I ever
>wanted to make something like a complete newsreader.
>
>You could do the same. I don't know what it is you want to do, but
>if the control covers the NNTP commands you need then it's easier
>to use the control.
>
>If you don't use the control you will have to do the socket stuff
>yourself, and manage the incoming stream of data. When you use a
>control you can respond to Events corresponding to certain NNTP
>commands.
>
>Basically, check if the control covers your need. If it does, use it.
>
>Oh.. you may also want to check on the web for reports as to the
>quality of the control - I learned later that the whole NetMaster
>collection of controls packaged with D4 were a buggy load of )*@$!!
>
>> > I know that writing the code will REALLY help me learn about the
>> > protocol, but is this a futile excercise?
>
>Learning something is never futile.
>
>> I mean, performance wise, would it make a difference using a
>> full-blown control, rather than just coding the commands I want to
>> utilize? 
>
>If you are really only using a few NNTP commands, you may consider
>coding the whole thing yourself. But using a control, and making use
>of the event-driven format, makes the whole thing more managable and
>less error-prone.
>
>> > Spend a week and learn it by writing something that uses it
>> > and then compare what you have with other options to see if your
>> > performance is good enough.
>
>I'll agree with that. As a matter of practise I made a little program
>to d/load headers from one of the MP3 groups, and then sort them
>together according to Subject. Simple, but it introduces you to the
>basic NNTP commands, and handling/sorting large lists.
>
>> > for one If you are going to write an NNTP client, you need to
>> > understand what's going on at the NNTP level so why not try writing
>> > it yourself as a way of learning it.
>
>The NNTP control I used in D4 was VERY similar to the actual NNTP
>commands themselves. Had to be, really.. it's so straight-forward, and
>there's little the control can take care of itself and hide from the
>programmer.
>
>
>
> Bas Ruiter
>

Technical Details
Message-ID: <92A4729C1idispcom@64.8.1.226>
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!news2.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!router1.news.adelphia.net!news1.news.adelphia.net.POSTED!not-for-mail
References: <92A2828CEidispcom@64.8.1.226> <20021009164719.689$Gs@newsreader.com> <foi9qukid0eer6ee5ss7dnp62e0hii0jte@4ax.com>

Show Full Headers
Complete Article Headers
Message-ID: <92A4729C1idispcom@64.8.1.226>
Subject: Re: Custom Client Software - Sorry, Last item.
Date: Fri, 11 Oct 2002 16:32:48 GMT
From: t.h.i.s.n.t.h.a.t@a.d.e.l.p.h.i.a..n.e.t (DS)
References: <92A2828CEidispcom@64.8.1.226> <20021009164719.689$Gs@newsreader.com> <foi9qukid0eer6ee5ss7dnp62e0hii0jte@4ax.com>
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!news2.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!router1.news.adelphia.net!news1.news.adelphia.net.POSTED!not-for-mail
Newsgroups: news.software.nntp
Organization: Your Company
User-Agent: Xnews/03.08.04
Lines: 109
NNTP-Posting-Host: 68.71.194.138
X-Complaints-To: abuse@adelphia.net
X-Trace: news1.news.adelphia.net 1034353968 68.71.194.138 (Fri, 11 Oct 2002 12:32:48 EDT)
NNTP-Posting-Date: Fri, 11 Oct 2002 12:32:48 EDT