🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #90727

Re: A C library for the NNTP protocol?

#90727
From: Jesse Rehmer
Date: Tue, 05 Sep 2023 21:59
41 lines
2717 bytes
On Sep 5, 2023 at 10:06:46 AM CDT, "Johann 'Myrkraverk' Oskarsson"
<johann@myrkraverk.invalid> wrote:

> Dear n.s.nntp,
> 
> Are there still extant C libraries that implement NNTP, and are
> useful for creating Usenet clients?
> 
> I am aware of UW's c-client, currently hidden inside Alpine sources,
> but I have not found it to be a really useful framework for building
> my own news reader.
> 
> My question is really twofold.
> 
> 1) Is there a library that already does this and can be used with SSL?
> 
> 2) In the absence of 1) how would I start experimenting on my own?
> 
> Other than setting up my own INN in a virtual machine, I do not know
> how to "practice" my own client.  Do Usenet providers frown upon
> practice clients, such as Eternal September?
> 
> And even with my own INN in a VM, I'm still not sure how to go about
> practicing all the intricacies of SSL verification, without a publicly
> available news server [possibly my own] and something like letsencrypt.
> 
> Am I perhaps overthinking this, and this is rather easy?

Not a developer, but did some looking around and found that libwww by W3C
contains a NNTP implementation that may be useful:

https://www.w3.org/Library/src/WWWNews.html

You can find the original NNTP 'reference implementation' sources at:

ftp://ftp.dinoex.org/pub/c-news/nntp.1.5.12.2.tar.gz
or
http://mirror.its.dal.ca/freebsd/distfiles/nntp.1.5.12.2.tar.gz

(don't forget the Y2k patch)
http://mirror.its.dal.ca/freebsd/distfiles/nntp-patch-y2k
Technical Details
Message-ID: <ud88b8$85q$1@nnrp.usenet.blueworldhosting.com>
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
References: <cuHJM.1091805$6Li6.85230@fx12.ams4>

Show Full Headers
Complete Article Headers
Message-ID: <ud88b8$85q$1@nnrp.usenet.blueworldhosting.com>
Subject: Re: A C library for the NNTP protocol?
Date: Tue, 05 Sep 2023 21:59:04 +0000
From: Jesse Rehmer <jesse.rehmer@blueworldhosting.com>
References: <cuHJM.1091805$6Li6.85230@fx12.ams4>
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: BlueWorld Hosting Usenet (https://usenet.blueworldhosting.com)
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=fixed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 5 Sep 2023 21:59:04 -0000 (UTC)
Injection-Info: nnrp.usenet.blueworldhosting.com; posting-account="k8cWG9+Y/93vxQYza75s9JQFoL8rgVF3P1Yluveoqs0"; logging-data="8378"; mail-complaints-to="usenet@blueworldhosting.com"
User-Agent: Usenapp for MacOS
Cancel-Lock: sha1:nuu5pJEFBigoieCMjHyqRzuFtsI= sha256:JEgBl3XEhk0MrpaULCY2BffFjQsDTnp0+8e934MwJ94= sha1:cm+YVdc4ILu7UwxJKUEo5/ml9b4= sha256:xhAZO3WNHFcKh3k/WoNnEi2YRve/buVzyjSnhySDAcs=
X-Usenapp: v1.27.1/d - Full License