🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
10 messages
10 total messages Started by t.h.i.s.n.t.h.a.t DS Wed, 09 Oct 2002 17:23
Custom Client Software - Sorry, Last item.
#61220
Author: t.h.i.s.n.t.h.a.t DS
Date: Wed, 09 Oct 2002 17:23
13 lines
1310 bytes
Am I going about this the wrong way in writing code to do this instead of 
using a readily available NNTP control?

I know that writing the code will REALLY help me learn about the protocol, 
but is this a futile excercise? I mean, performance wise, would it make a 
difference using a full-blown control, rather than just coding the commands 
I want to utilize?
 

Thank you in advance, (again)

DS
Re: Custom Client Software - Sorry, Last item.
#61240
Author: Curt Welch
Date: Wed, 09 Oct 2002 20:47
25 lines
2285 bytes
t.h.i.s.n.t.h.a.t@a.d.e.l.p.h.i.a..n.e.t (DS) wrote:
> Am I going about this the wrong way in writing code to do this instead of
> using a readily available NNTP control?
>
> I know that writing the code will REALLY help me learn about the
> protocol, but is this a futile excercise? I mean, performance wise, would
> it make a difference using a full-blown control, rather than just coding
> the commands I want to utilize?

Sorry, but I have no idea what a "control" is.  But, the basics of NNTP are
very simple.  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.  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.

For more advice on programing, you might have beeter luck in a group which
discusses the language/systems you are using.  If you have questions about
what NNTP is doing (like you have been asking), you can find your answers
here.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Custom Client Software - Sorry, Last item.
#61315
Author: 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
>

Re: Custom Client Software - Sorry, Last item.
#61412
Author: Bill Cole
Date: Sun, 13 Oct 2002 12:32
31 lines
2318 bytes
In article <92A2828CEidispcom@64.8.1.226>,
 t.h.i.s.n.t.h.a.t@a.d.e.l.p.h.i.a..n.e.t (DS) wrote:

>Am I going about this the wrong way in writing code to do this instead of 
>using a readily available NNTP control?

Probably. 

I have a queasy feeling that you are doing this for Windows, so I can't 
name an existing good library of NNTP code, but I'd bet that there is 
one. Maybe 20. 

>I know that writing the code will REALLY help me learn about the protocol, 
>but is this a futile excercise? I mean, performance wise, would it make a 
>difference using a full-blown control, rather than just coding the commands 
>I want to utilize?

Well, it sounds like you are looking to detect and handle binaries, 
which is an intrinsically difficult task. Whether anything out there 
does what you want is an unanswered question, but you also have to 
consider whether what you want to do is even possible in principle. 
Coding a newsreader definitely would teach you the protocol and 
real-world usage, but that's not unlike learning about cars by building 
one yourself. From a block of steel.

-- 
We categorically reject the argument that a vendor has a right under the
Constitution or otherwise to send unwanted material into the home of 
another. [...]the answer is that no one has a right to press even 'good'
ideas on an unwilling recipient. -- Chief Justice Berger, SCotUS
Re: Custom Client Software - Sorry, Last item.
#61473
Author: Unknown
Date: Tue, 15 Oct 2002 11:17
49 lines
3038 bytes
bill@scconsult.com (Bill Cole) wrote in
<bill-F78530.08325213102002@fireproof.scconsult.com>: 

>In article <92A2828CEidispcom@64.8.1.226>,
> t.h.i.s.n.t.h.a.t@a.d.e.l.p.h.i.a..n.e.t (DS) wrote:
>
>>Am I going about this the wrong way in writing code to do this instead
>>of using a readily available NNTP control?
>
>Probably. 
>
>I have a queasy feeling that you are doing this for Windows, so I can't 
>name an existing good library of NNTP code, but I'd bet that there is 
>one. Maybe 20.

Unfortunately yes, i am writing this for windows.

Not that windows is the greatest OS, but that is what i use, and what the 
majority of the people use. windows comes pre-installed on 99+% of PC's 
today (along with tons of other pre-installed software (yuck) that most of 
it is never used).

>
>>I know that writing the code will REALLY help me learn about the
>>protocol, but is this a futile excercise? I mean, performance wise,
>>would it make a difference using a full-blown control, rather than just
>>coding the commands I want to utilize?
>
>Well, it sounds like you are looking to detect and handle binaries, 
>which is an intrinsically difficult task. Whether anything out there 
>does what you want is an unanswered question, but you also have to 
>consider whether what you want to do is even possible in principle. 
>Coding a newsreader definitely would teach you the protocol and 
>real-world usage, but that's not unlike learning about cars by building 
>one yourself. From a block of steel.
>

i would build my car out of aluminun wherever possible. the main structural 
components would be steel, like the frame. but, i already know all about 
cars, well, before they were all computerized anyway, i was a motorhead 
before i became a computer geek. but my goal here isn't to learn about 
nntp, my goal is to write a newsreader, an unfortunately, learning nntp is 
one thing that has to be done. before yo do anything you have to learn how 
to use the tools, and the protocol is one of the tools of usenet.

DS


Re: Custom Client Software - Sorry, Last item.- Just an appendage to my first reply
#61474
Author: Unknown
Date: Tue, 15 Oct 2002 11:48
37 lines
2459 bytes
bill@scconsult.com (Bill Cole) wrote in
<bill-F78530.08325213102002@fireproof.scconsult.com>: 

>In article <92A2828CEidispcom@64.8.1.226>,
> t.h.i.s.n.t.h.a.t@a.d.e.l.p.h.i.a..n.e.t (DS) wrote:
>
>>Am I going about this the wrong way in writing code to do this instead
>>of using a readily available NNTP control?
>
>Probably. 
>
>I have a queasy feeling that you are doing this for Windows, so I can't 
>name an existing good library of NNTP code, but I'd bet that there is 
>one. Maybe 20. 
>
>>I know that writing the code will REALLY help me learn about the
>>protocol, but is this a futile excercise? I mean, performance wise,
>>would it make a difference using a full-blown control, rather than just
>>coding the commands I want to utilize?
>
>Well, it sounds like you are looking to detect and handle binaries, 
>which is an intrinsically difficult task. Whether anything out there 
>does what you want is an unanswered question, but you also have to 
>consider whether what you want to do is even possible in principle.

How could what i want to do be not possible in principle? there is already 
software that does this....so you may ask why i want to write one for 
myself. i would answer 'mainly, to see if i could do it'.

DS
 
>Coding a newsreader definitely would teach you the protocol and 
>real-world usage, but that's not unlike learning about cars by building 
>one yourself. From a block of steel.
>

Re: Custom Client Software - Sorry, Last item.- Just an appendage to my first reply
#61532
Author: Bill Cole
Date: Sat, 19 Oct 2002 17:01
47 lines
3259 bytes
In article <92A84F414idispcom@64.8.1.227>,
 jonnyonthespot@nothere.com (Unknown) wrote:

> bill@scconsult.com (Bill Cole) wrote in
> <bill-F78530.08325213102002@fireproof.scconsult.com>: 
> 
> >In article <92A2828CEidispcom@64.8.1.226>,
> > t.h.i.s.n.t.h.a.t@a.d.e.l.p.h.i.a..n.e.t (DS) wrote:
> >
> >>Am I going about this the wrong way in writing code to do this instead
> >>of using a readily available NNTP control?
> >
> >Probably. 
> >
> >I have a queasy feeling that you are doing this for Windows, so I can't 
> >name an existing good library of NNTP code, but I'd bet that there is 
> >one. Maybe 20. 
> >
> >>I know that writing the code will REALLY help me learn about the
> >>protocol, but is this a futile excercise? I mean, performance wise,
> >>would it make a difference using a full-blown control, rather than just
> >>coding the commands I want to utilize?
> >
> >Well, it sounds like you are looking to detect and handle binaries, 
> >which is an intrinsically difficult task. Whether anything out there 
> >does what you want is an unanswered question, but you also have to 
> >consider whether what you want to do is even possible in principle.
> 
> How could what i want to do be not possible in principle? 

That depends somewhat on what you want. If you want to detect and handle 
binaries perfectly based solely on headers, it is impossible. If you 
want to detect and handle binaries with about 90% accuracy, it is 
possible. 

>there is already 
> software that does this....so you may ask why i want to write one for 
> myself. i would answer 'mainly, to see if i could do it'.

An admirable endeavor.

-- 
The answer is that no one has a right to press even 'good' ideas on an 
unwilling recipient. -- Chief Justice Berger, SCotUS

Bill Cole                                           bill@scconsult.com
Re: Custom Client Software - Sorry, Last item.- Just an appendage to my first reply
#61608
Author: DS
Date: Thu, 24 Oct 2002 02:53
40 lines
2705 bytes
>
>That depends somewhat on what you want. If you want to detect and handle
>binaries perfectly based solely on headers, it is impossible. If you 
>want to detect and handle binaries with about 90% accuracy, it is 
>possible. 

i am tooling around with other flags other than just subject lines, which 
is what i think you meant. 

it's a lot of work and may not be worth it, but i've been experimenting 
with it. different methods, like by byte/line count, same subject line, 
lots of different indicators/combination of indicators. i can't remember my 
original post, but i did d/l 200,000 headers from several groups and 
servers and examined them all, and what i have so far looked pretty 
accurate, for detecting multi-part posts only, for assembly into one msg 
for easy d/l.

and besides, nothing is 100% perfect, i'd be happy with 95% or better. and 
if i end up with 80% i'll go back to the drawing board.

thank you for your time,

DS



>
>>there is already 
>> software that does this....so you may ask why i want to write one for 
>> myself. i would answer 'mainly, to see if i could do it'.
>
>An admirable endeavor.
>



-----------== Posted via Newsfeed.Com - Uncensored Usenet News ==----------
   http://www.newsfeed.com       The #1 Newsgroup Service in the World!
-----= Over 100,000 Newsgroups - Unlimited Fast Downloads - 19 Servers =-----
Re: Custom Client Software - Sorry, Last item.- Just an appendage to my first reply
#61609
Author: Curt Welch
Date: Thu, 24 Oct 2002 03:51
14 lines
1936 bytes
t.h.i.s.n.t.h.a.t@a.d.e.l.p.h.i.a.n.e.t (DS) wrote:
> and besides, nothing is 100% perfect, i'd be happy with 95% or better.
> and if i end up with 80% i'll go back to the drawing board.

Yeah, that's exactly how it works.  You take you best guess about how to
combine posts and you adjust until you get a percentage high enough to make
you happy.  Then every so often you have to adjust because something new is
happening on Usenet and the percentage of posts your software is getting
right drops to a point which is too low. :)

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Custom Client Software - Sorry, Last item.
#61641
Author: JanC
Date: Fri, 25 Oct 2002 18:00
17 lines
1776 bytes
t.h.i.s.n.t.h.a.t@a.d.e.l.p.h.i.a..n.e.t (DS) schreef:

> 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.

There is an NNTP client component in Fran�ois Piette's ICS (internet 
component suite) for Delphi, C++ Builder & Kylix which is freeware with 
source code.  Don't know how good it is, but seems like it fits your 
budget...  :-)

-- 
JanC

"Be strict when sending and tolerant when receiving."
RFC 1958 - Architectural Principles of the Internet - section 3.9
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