Article View: news.software.nntp
Article #2401Re: Writing a NNTP news reader...
From: Tom Limoncelli
Date: Thu, 03 Feb 1994 00:11
Date: Thu, 03 Feb 1994 00:11
37 lines
2683 bytes
2683 bytes
In <1994Feb1.200332.693@il.us.swissbank.com> chris@its.com (Chris Cuilla) writes: >So...if I was thinking about writing a news reader, it appears that these >might be the groups to keep an eye on for tips. Am I correct? Actually, most of the news.software groups would be useful to read. >First question might be...how to get started? I guess I need some code to >connect to and deal with an NNTP server (how am I doin' so fer?) Is there >anything like this that can get me started? Well, read the RFC's for NNTP and netnews. If you link to libinn.a (documented in the innlib man page) you don't need to learn anything about TCP connections, etc. The MOST IMPORTANT THING to remember when writing a newsreader: Write as little code as possible. Use the libinn.a routines to their fullest, so that improvements to libinn.a will improve your newsreader. When posting to a NNTP server, the server will generate a default header for any header you leave out (except From:, Subject: and Newsgroups:). So, don't waste any time generating (for example) a Path: header. You risk generating one that is wrong. If you are lazy and don't write any code you will end up with a BETTER posting mechanism because the server ALWAYS generates the right headers! The "market" is flooded with newsreaders but writing a newsreader is a good exercize for someone learning to write user interfaces, etc. You might want to to invent some feature that nobody has ever done before. Tom -- Tom Limoncelli -- tal@warren.mentorg.com (work) -- tal@plts.org (play) "Psst! Hey, Anthony! Y'know what I | Disclaimer: I do not like about existing?" "Uh... uh... what?" | speak for Mentor Graphics. "Possessing a physical extension." -TSA |
Technical Details
Message-ID:
<2ipffc$fsq$1@sdl.Warren.MENTORG.COM>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!xlink.net!news.belwue.de!news.dfn.de!news.dfn.de!zib-berlin.de!netmbx.de!Germany.EU.net!EU.net!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!news.mentorg.com!sdl!not-for-mailReferences:
<1994Feb1.200332.693@il.us.swissbank.com>Show Full Headers
Complete Article Headers
Message-ID: <2ipffc$fsq$1@sdl.Warren.MENTORG.COM> Subject: Re: Writing a NNTP news reader... Date: Thu, 03 Feb 1994 00:11:24 +0000 From: tal@Warren.MENTORG.COM (Tom Limoncelli) References: <1994Feb1.200332.693@il.us.swissbank.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!xlink.net!news.belwue.de!news.dfn.de!news.dfn.de!zib-berlin.de!netmbx.de!Germany.EU.net!EU.net!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!news.mentorg.com!sdl!not-for-mail Newsgroups: news.software.nntp,news.software.readers Organization: Mentor Graphics -- IC Group, Warren, NJ, USA Lines: 37 Sender: tal@Warren.MENTORG.COM Distribution: inet NNTP-Posting-Host: sdl.warren.mentorg.com