CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2003
    Location
    IL
    Posts
    27

    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

  2. #2
    Join Date
    Jan 2003
    Location
    IL
    Posts
    27

    Re: Getting curret time from NT Time Server

    any idea any body?

    Thanks,
    --Shay

  3. #3
    Join Date
    Jan 2001
    Posts
    588

    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.

  4. #4
    Join Date
    Jan 2003
    Location
    IL
    Posts
    27

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured