ntpclient
ntpclient copied to clipboard
NTP client.
Read the host from command line args
At first I would like to say thank you, great job. Unfortunately, I have a problem with your code. When I use it in a loop, the program creates a...
Hi - I'm wondering about the order of your bit fields for Leap Indicator, Version Number and Mode. According to multiple sources I've looked at: LI: bits 0-1 VN: bits...
In ntpclient/main.c program, at **read** function call the program is hanging and not coming out. Looks like it is not getting response from ntp server. Same case at recievefrom function...
The original bit order was wrong for the first byte of the NTP packet. For example, settings ntp[0] = 0x1C, results in li = 0, vn = 7, mode =...
Hi David, Great work here! I've got a question, in your code snippet in C, I don't see you setting the "Originate Timestamp" (or t0) in the packet you're sending,...