Free download HS NTP C Source Library

HS NTP C Source Library

1.10
HS NTP is a software library in C (supplied with full source code) implements the client
Free Download
User rating
5.7/10
7 votes
License
Shareware
OS
Windows
Developer
Version
1.10
Language
English
Release date
28 August 2014

Editor's review

This software package helps implement client of Network Time Protocol (NTP).

HS NTP C Source Library comes with full source code in C. Thus, if there is any customization you need, it is available for tinkering. If you need to implement the client side of the Network Time Protocol over UDP socket layer according to RFC1769 and RFC1305, this set of components is going to be useful. HS NTP Library component helps a user application to synchronize local system time to remote NTP server time. One big attraction is that there are no royalties for distributing the code with your application. Source code for Windows, Linux, Mac OS X, iOS and Win CE environments are included. Time resolution supported is in milliseconds. The way this thing works, is that you need to call the initialization functions. This action supplies pointers to callback functions in user code for timer management and for reporting NTP events to user.

The time difference between local system and remote NTP server can be obtained by the user application through calls to HsNtpGetTime function. This call will have to specify NTP server name or IP address and the UDP port to use. The library will help resolve the server name, formats and send NTP time request packet according to the standards. On receipt of time from NTP server it analyses the reply. The time difference is reported to user application via callback functions. Offset value in seconds is applied to local clock and synchronized to the time at remote NTP server. This is a good product. It has many useful features. If you were looking for a product like this, this is one you could try out.

Publisher's description

HS NTP is a software library in C (supplied with full source code) which implements the client side of Network Time Protocol (NTP) over UDP socket layer according to RFC1769 and RFC1305. HS NTP Library allows a user application to synchronise local system time to remote NTP server time.
HS NTP includes the C source for the following platforms: Windows, Linux, MAC OS X, iPhone iOS, WinCE
First user application calls HS NTP initialisation function supplying pointers to callback functions in user code for timer management and for reporting NTP events to user.
To obtain time difference between local system and remote NTP server, the user application calls HsNtpGetTime function, specifying NTP server name or IP address and source UDP port to use.
HS NTP library then resolves the server name, formats and sends NTP time request packet according to RFC1305 and RFC1769 standard. Once HS NTP has received NTP time reply from NTP server it analyses the reply and reports the resulting time difference to user application via callback function. The parameters to this event callback contain the offset value in seconds necessary to apply to local clock in order to synchronize it to the time at remote NTP server.
Modular design makes it easy to port HS NTP protocol module to any environment. HS NTP internally at a lower layer interfaces to HS Sock library which provides UDP transport services. User application need not worry about Winsock - HS NTP does all transmission, reception and event handling over socket layer.
HS NTP C Source Library
HS NTP C Source Library
Version 1.10
Free Download

User comments

Rate this program