HS NTP C Source Library 1.5
O. James Samson - April 21, 2011HS NTP is a software library in C (supplied with full source code), which implements the client side of Network Time Protocol (POP3) over UDP socket layer. According to RFC1769 and RFC1305, HS NTP Library allows all users application to synchronize local system time to remote NTP server time. 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. To use this program, you need to understand a few things.
First user application calls HS NTP initialization function supplying pointers to callback functions in user code for timer management and for reporting NTP events to user. 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 include the offset value in seconds necessary to apply to local clock in order to synchronize it to the time at remote NTP server.
HS NTP C Source Library 1.5 enables has the following features; NTP Client Operation, Server name resolution, Non-blocking asynchronous operation, supports millisecond resolution, etc. Users can download this program for free.
Want to check it out? Visit Hillstone-Software.
This entry was posted on Thursday, April 21st, 2011 at 11:26 pm and is filed under Main. You can follow any responses to this entry through the RSS 2.0 feed. You can skip to the end and leave a response. Pinging is currently not allowed.