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.
User comments