Click to See Complete Forum and Search --> : Getting curret time from NT Time Server


shy017
March 8th, 2005, 04:17 AM
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

shy017
March 9th, 2005, 08:37 AM
any idea any body?

Thanks,
--Shay

Bob Davis
March 9th, 2005, 10:18 AM
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.

shy017
March 10th, 2005, 07:46 AM
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