On 08/04/2017 11:33 AM, Hans Lehmann wrote:
Hello.

Does anyone have any experience how to query with a UDP socket client on port 123 the time from a time server? A socket client on port 37 will work correctly, but only the seconds since 1.1.1900 will be returned. This accuracy is not enough.

Sincerely

Hans

I assume you mean that you need (not necessarily greater accuracy which is dependent upon the server, but) greater precision by retrieving also the fractional part of the seconds since the NTP epoch?

No real-world, production experience here, but have a look at the attached 
example.


--
Lee

Attachment: ntpexample-0.0.1.tar.gz
Description: application/gzip

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to