[En-Nut-Discussion] Standard C time functions for Nut/OS
Lars Andersson
lakab at telia.com
Thu Oct 16 21:11:27 CEST 2003
Hi Oliver,
I would really appreciate if you would be so
kind as to donate the correct version of
the SNTPFRAME struct.
Thanks in advance,
Lars H. Andersson
-----Original Message-----
From: en-nut-discussion-admin at egnite.de
[mailto:en-nut-discussion-admin at egnite.de] On Behalf Of Oliver Schulz
Sent: Thursday, 16 October, 2003 08:39
To: en-nut-discussion at egnite.de
Subject: [En-Nut-Discussion] Standard C time functions for Nut/OS
Hi All,
I nearly finished the development of the standard c time functions. I
compared several implementations from MS, Borland, ... written for a old
system called "DOS". It was a bit tricky because of the massive
different calculations for converting the seconds counter to date/time
including leap year and so on.
But I implemented also the features for timezones and daylight saving
and added a correct version of Lars Anderson's SNTP idea (sorry Lars,
but your SNTPFRAME struct was wrong).
BTW, while testing the SNTP, I discovered that Win NT/2000 servers
respond to a SNTP packet sent to the broadcast address
(255.255.255.255). So if you have at least one server in your LAN, you
don't need to add official IP addresses for (S)NTP servers in your code.
Hopefully I can manage to write some readme files today and send my
modifications to Harald.
Oliver.
_______________________________________________
En-Nut-Discussion mailing list
En-Nut-Discussion at egnite.de
http://www.egnite.de/mailman/listinfo/en-nut-discussion
More information about the En-Nut-Discussion
mailing list