Time Client Newbie

From: Samuel (witetree_at_hotmail.com)
Date: 05/30/04


Date: 29 May 2004 22:24:29 -0700

Hello all,

Im trying to create a C program that connects to a timeserver on port
37 and displays the time of the timeserver. Im doing UDP so I
initiate the connection and send an empty datagram. All is well and
good, and its quite simple too. But the only problem is that when I
use the ctime function, it displays the current time in my hometown
(my PC). However, I want it to display the time of the timeserver I
connect to.

Any suggestions would be great.



Relevant Pages

  • Re: ZoneAlarm - letting my computer clock contact the TimeServer
    ... >ZoneAlarm 5.5 keeps the clock from accessing the timeserver. ... I determined that the NTP protocol (Port ... This computer clock is really bad and needs frequent ...
    (alt.computer.security)
  • Time Client Newbie
    ... Im trying to create a C program that connects to a timeserver on port ... Im doing UDP so I ... I want it to display the time of the timeserver I ...
    (microsoft.public.win32.programmer.networks)
  • Re: Time Client Newbie
    ... Check ClockRack link on http://www.charlespetzold.com/articles.html ... Arkady ... > Im trying to create a C program that connects to a timeserver on port ... > 37 and displays the time of the timeserver. ...
    (microsoft.public.win32.programmer.networks)