From:	MERC::"uunet!CRVAX.SRI.COM!RELAY-INFO-VAX" 10-MAR-1993 09:18:20.49
To:	Info-VAX@KL.SRI.COM
CC:	
Subj:	Re: Anyone know of a public domain NTP for UCX?

In article <01GVG1VUITD08ZFZ2X@Sol.YorkU.CA>, CASEY@Sol.YorkU.CA (Acacio (Casey) A.F. de Carvalho) writes:
> So, does anyone know of a public domain NTP add-on that can run with UCX?

  I know of one which uses DECdts to actually manage the time changes, but
which gets the date/time information via NTP. Here's the README from the
package:

[begin included text]
This is a hacked up DTSS$PROVIDER for DECdts (for VAX/VMS).

There are two versions, one which queries tcp port 37 (time),
but with limited accuracy (systematic error of +- 1 second!).

And the other which queries a NTP Version 3 server. The accuracy
in this case depends on your NTP server, but a good NTP
service should give you up to a few ms.

If you only have NTP Version 2 servers available, define
"V2" during compilation of ntp_provider. But don't trust the
inaccuracy calculation in this case.

I did not provide the DTSS$PROVIDER.C source module, due to
DEC's Copyright. Instead there is a diff (and a patch) file,
from which you could modify DTSS$PROVIDER.C (only a few lines
to change).

How to build it:

1. Copy SYS$EXAMPLES:DTSS$PROVIDER.C to this directory.
   and SYS$EXAMPLES:DTSS$PROVIDER.H

2. Modify it according to DTSS$PROVIDER.DIFF, or use
   patch with DTSS$PROVIDER.PATCH

3. run the Command Procedure for the Module you wish:

	LINKDTSS_UNIXTIME.COM for the port 37 query

        LINKDTSS_NTP for the NTP query

4. The DTSS$_TP_DEVICE logical should contain the host name of the
   server

5. run the image according to the instructions in DTSS$PROVIDER.C

*******************************************************************

I've used some routines and header files out of the xntp Version distribution,
also I've used the gmtime routine from the GNU glibc, because the one
in the VAXCRTL is dead.

Klaus Steinberger
Beschleunigerlabor der TU und LMU Muenchen
Hochschulgelaende
8046 Garching

Klaus.Steinberger@bl.physik.tu-muenchen.de
[end included text]

  The package is available via anonymous FTP from bl.physik.tu-muenchen.de
in the /pub/comp/platforms/vms/DECdts directory. You'll have to type the
CD command blind - doing a "DIR" gives an "interrupted system service" err-
or.

	Terry Kennedy		Operations Manager, Academic Computing
	terry@spcvxa.bitnet	St. Peter's College, Jersey City, NJ USA
	terry@spcvxa.spc.edu	+1 201 915 9381

