Article View: news.software.nntp
Article #90746Re: A C library for the NNTP protocol?
From: Russ Allbery
Date: Sat, 09 Sep 2023 16:37
Date: Sat, 09 Sep 2023 16:37
22 lines
2005 bytes
2005 bytes
Doc O'Leary , <droleary.usenet@2023.impossiblystupid.com> writes:
> Itโs โeasyโ in the sense that if you have the skills to write the
> software in the first place, the NNTP protocol itself is not going to
> give you difficulty. What I spent the bulk of my time on was everything
> that happens before and after the data transfer. Heaven help you if
> youโre looking to make something with multipart binary support . . .
Yeah, agreed, the NNTP part is drastically simpler than the article
parsing part. Even if you don't implement MIME, parsing news articles is
challenging. There are a lot of libraries out there, but my impression is
that there are more of them in higher-level languages like Perl or Python
than there are in C (probably for the obvious reason that it's essentially
all string parsing, which is one of C's weakest points since the language
exposes all of the fiddly bits and byte counting and provides you very
little help with character sets).
--
Russ Allbery (eagle@eyrie.org) <https://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<https://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID:
<87tts32tgx.fsf@hope.eyrie.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mailReferences:
<cuHJM.1091805$6Li6.85230@fx12.ams4> <udi6k6$51h4$1@dont-email.me>Show Full Headers
Complete Article Headers
Message-ID: <87tts32tgx.fsf@hope.eyrie.org> Subject: Re: A C library for the NNTP protocol? Date: Sat, 09 Sep 2023 09:37:34 -0700 From: Russ Allbery <eagle@eyrie.org> References: <cuHJM.1091805$6Li6.85230@fx12.ams4> <udi6k6$51h4$1@dont-email.me> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail Newsgroups: news.software.nntp Organization: The Eyrie Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: hope.eyrie.org; logging-data="8494"; mail-complaints-to="news@eyrie.org" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:NZruHWqIlDcsKlQk1qlRVjE10gM=