Alaska Software Inc. - NTP
Username: Password:
AuthorTopic: NTP
Rafaele TammeoNTP
on Fri, 15 Feb 2013 14:00:39 +0100
Hi,

I need to contact a network time server via the NTP to synchronize the time.
Does anybody know about good products to do this?

Thank you

Regards
Raffaele
Thomas BraunRe: NTP
on Fri, 15 Feb 2013 15:57:41 +0100
Rafaele Tammeo wrote:
 
> I need to contact a network time server via the NTP to synchronize the time.
> Does anybody know about good products to do this?

Why not simply use the net time command of the operating system?

http://blogs.msdn.com/b/w32time/archive/2009/08/07/net-time-and-w32time.aspx

Thomas
Rafaele TammeoRe: NTP
on Fri, 15 Feb 2013 16:25:31 +0100
On 15/02/2013 15.57, Thomas Braun wrote:
> Rafaele Tammeo wrote:
>
>> I need to contact a network time server via the NTP to synchronize the time.
>> Does anybody know about good products to do this?
>
> Why not simply use the net time command of the operating system?
>
> http://blogs.msdn.com/b/w32time/archive/2009/08/07/net-time-and-w32time.aspx
>
> Thomas
>

Hi Thomas,

thank you for your answer, but I need to ask the time to a specific 
network time server using NTP.

Regards
Raffaele
Rafaele TammeoRe: NTP
on Fri, 15 Feb 2013 16:27:13 +0100
On 15/02/2013 15.57, Thomas Braun wrote:
> Rafaele Tammeo wrote:
>
>> I need to contact a network time server via the NTP to synchronize the time.
>> Does anybody know about good products to do this?
>
> Why not simply use the net time command of the operating system?
>
> http://blogs.msdn.com/b/w32time/archive/2009/08/07/net-time-and-w32time.aspx
>
> Thomas
>

Hi Thomas,

thank you for your answer, but I need to ask directly the time to a 
specific network time server using NTP.

Regards
Raffaele
Thomas BraunRe: NTP
on Mon, 18 Feb 2013 08:35:11 +0100
Rafaele Tammeo wrote:

> 
> Hi Thomas,
> 
> thank you for your answer, but I need to ask directly the time to a 
> specific network time server using NTP.

That's what the time command can do, it sets the time and you can use
time() to get this (new) time - or do you want to avoid setting the local
time of the machine your program is running on?

Then you need to implement your own NTP client; probably by using ASINETs
low level socket functions.

thomas
Rafaele TammeoRe: NTP
on Wed, 20 Feb 2013 09:13:21 +0100
On 18/02/2013 08.35, Thomas Braun wrote:
> Rafaele Tammeo wrote:
>
>>
>> Hi Thomas,
>>
>> thank you for your answer, but I need to ask directly the time to a
>> specific network time server using NTP.
>
> That's what the time command can do, it sets the time and you can use
> time() to get this (new) time - or do you want to avoid setting the local
> time of the machine your program is running on?
>
> Then you need to implement your own NTP client; probably by using ASINETs
> low level socket functions.
>
> thomas
>

Hi Thomas,

correct: I just want to know the time on a NTP server without changing 
the time of the local machine.
I know the NTP communication is via UDP, so, yes, if I will find no 
alternatives I will need to implement it.

Regards
Raffaele