Getting curret time from NT Time Server
Hi all.
I'm running on Embedded system.
I want to get the current time from an NT Time Server.
I have in the NET this NT and the time server is up and running.
I'm looking for the C/C++ code that do this remotely.
That is, a code the generate a request. Sends it. Receives the answer, and parse it.
Thanks in advance.
--Shay
Re: Getting curret time from NT Time Server
any idea any body?
Thanks,
--Shay
Re: Getting curret time from NT Time Server
Uh, anything that would do this would be heavily platform-dependent, as you're talking about network communication. The fact that you're running on an embedded system leaves everyone else to guess what you might be running. Do you have a TCP/IP stack? What OS are you running? Without giving some basic information on your issue, you're not going to get any meaningful help.
Re: Getting curret time from NT Time Server
Thanks for the note.
I'm using an embedded system with:
+ ansi-C code
+ TCP/IP (UDP)
My problem is not my system. Specifically, I do not know how to connect to the NT server. Which port? Which protocol?
Regards,
--Shay