AminetAminet
Search:
84736 packages online
About
Recent
Browse
Search
Upload
Setup
Services

comm/net/sntp.lha

Mirror:Random
Showing: m68k-amigaos iconppc-amigaos iconppc-morphos iconi386-aros iconi386-amithlon iconppc-warpup iconppc-powerup icongeneric icon
No screenshot available
Short:SNTP/NTP time sync client
Author:Patrik Axelsson
Type:comm/net
Version:1.5
Architecture:m68k-amigaos
Distribution:Aminet
Date:2018-06-21
Download:/comm/net/sntp.lha - View contents
Readme:/comm/net/sntp.readme
Downloads:2707

This client can sync both the system time and real time clock against a SNTP
or NTP server using the Simple Network Time Protocol described in RFC 4330.

It will adjust for both timezone offset from UTC and daylight saving time
using the TZONE env variable. If TZONE isn't found, it will try to use
locale.library, but then it will not be able to adjust for daylight saving
time.

Unless you set TZONE manually or install AmigaOS4.1, you can use the following
comprehensive list of utilities which maintains a TZONE env variable:
http://aminet.net/package/util/time/SetDST

I have also included the source code as it might help and or amuse someone =).


Usage template:
> sntp ?
Server/A,NoSave/S,Quiet/S: 

Server - A NTP or SNTP server. They use the same protocol and return the same
         data, but the two types of clients work and use the data differently.
NoSave - Don't save the corrected time to either the system time or real
         time clock.
Quiet  - Supress info output, but not errors.


Usage example:
> sntp se.pool.ntp.org
Using env TZONE="CET-1" for UTC offset: -3600s west
se.pool.ntp.org is a stratum 2 server.
System clock is behind server by 192.860143s.
Correction applied to system time and RTC.


History:
Version 1.5 (2018-06-20):
- Added AS225/INet-225 version
- Improved error output for socket functions.

Version 1.1 (2016-08-04):
- Fixed a bug where a time difference of more than 34 years would cause
  an overflow when calculating the system clock offset.
- Improved info output.

Version 0.3 (2015-11-02):
- Initial release.


Contents of comm/net/sntp.lha
PERMISSION  UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP     NAME
---------- ----------- ------- ------- ------ ---------- ------------ ----------
[unknown]                  171     390  43.8% -lh5- fe21 Jun 21 00:13 sntp/Makefile
[unknown]                 3811    6416  59.4% -lh5- 294d Jun 21 00:13 sntp/sntp
[unknown]                 3868    6488  59.6% -lh5- aa34 Jun 21 00:13 sntp/sntp.225
[unknown]                 4012   13583  29.5% -lh5- d14a Jun 21 00:13 sntp/sntp.c
[unknown]                  970    1763  55.0% -lh5- c2d5 Jun 21 00:13 sntp/sntp.readme
[unknown]                  502    1327  37.8% -lh5- 7a51 Jun 21 00:13 sntp/Socket225.c
[unknown]                  461    1203  38.3% -lh5- b647 Jun 21 00:13 sntp/SocketBSD.c
[unknown]                  224     561  39.9% -lh5- ccba Jun 21 00:13 sntp/SocketCommon.c
[unknown]                  270     613  44.0% -lh5- 46df Jun 21 00:13 sntp/SocketCommon.h
[unknown]                  654    1434  45.6% -lh5- 1066 Jun 21 00:13 sntp/startup.c
---------- ----------- ------- ------- ------ ---------- ------------ ----------
 Total        10 files   14943   33778  44.2%            Jun 20 20:17
Page generated in 0.02 seconds
Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>