🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #1065

Re: Trumpet 1.04B, Date problem

#1065
From: Alan P Barrett
Date: Tue, 21 Jan 1992 02:37
51 lines
3228 bytes
In article <ton.26@let.rug.nl>,
ton@let.rug.nl (A.H.A.M. Roovers) writes:
> I had the same problem in December and could not reach Peter Tattam (the 
> author; he is on a vacation). I noticed that the absence of the time host 
> entry in the configuration file was responsible for this problem. When I 
> added a time host entry posting worked fine. What I wanted to ask Peter is 
> what kind of time host is needed...

Somebody at this site was involved in correspondence with Peter Tattam
to get the Trumpet date problems sorted out, and he consulted with me,
so I think I can answer this.  (I might make some mistakes about which
versions of trumpet exhibited what behaviour, but the gist of it should
be correct.)

Older versions of trumpet (1.03 and earlier, I think) used the RFC-867
Daytime service (over UDP), and simply put the string returned by the
daytime server into the news Date field.  This was wrong because the
format of the string returned by the daytime service is not
standardised.

One version of Trumpet (1.04, I think) used the RFC-868 Time service
(over UDP), and used that to generate a date string in the format
described by the obsolete RFC-850.  This was also wrong.

Trumpet 1.04B uses RFC-868/UDP to get the time, and formats the date
string correctly according to RFC-1036 as modified by RFC-1123.

So, your time host must support the RFC-868 time service over UDP.  This
service resides on UDP port 37.  Most Unix systems would have lines like
this in their /etc/protocols file to define the service numbers:

  daytime         13/tcp          # RFC-867
  daytime         13/udp          # RFC-867
  time            37/tcp          # RFC-868
  time            37/udp          # RFC-868

Most Unixes would also need something in /etc/inetd.conf.  This is what
I use (but note that some inetd implementations have built in support
for the time and daytime services, eliminating the need for external
programs):

  time    stream tcp  nowait  nobody  /usr/local/lib/rfc868time rfc868time
  time    dgram  udp  wait    nobody  /usr/local/lib/rfc868time rfc868time
  daytime stream tcp  nowait  nobody  /bin/date date
  daytime dgram  udp  wait    nobody  /bin/date date

I wrote my own rfc868time program.  Shout if anybody wants it.

--apb
Alan Barrett, Dept. of Electronic Eng., Univ. of Natal, Durban, South Africa
RFC822: barrett@ee.und.ac.za             Bang: m2xenix!quagga!undeed!barrett
Technical Details
Message-ID: <1992Jan21.043743.4218@daisy.ee.und.ac.za>
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!sparky!uunet!cs.utexas.edu!uwm.edu!ogicse!psgrain!undeed!barrett
References: <1992Jan16.102235.646@tdb.uu.se> <micke.18@solix.udac.uu.se> <ton.26@let.rug.nl>

Show Full Headers
Complete Article Headers
Message-ID: <1992Jan21.043743.4218@daisy.ee.und.ac.za>
Subject: Re: Trumpet 1.04B, Date problem
Date: Tue, 21 Jan 1992 02:37:43 +0000
From: barrett@daisy.ee.und.ac.za (Alan P Barrett)
References: <1992Jan16.102235.646@tdb.uu.se> <micke.18@solix.udac.uu.se> <ton.26@let.rug.nl>
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!sparky!uunet!cs.utexas.edu!uwm.edu!ogicse!psgrain!undeed!barrett
Newsgroups: news.software.readers
Keywords: trumpet,date
Article-I.D.: daisy.1992Jan21.043743.4218
Organization: Univ. Natal, Durban, S. Africa
Lines: 52
X-Bytes: 2424