Re: [ntp:questions] Any samples for NTP/SNTP client code?

2007-12-07 Thread Jan Ceuleers
Danny Mayer wrote: Jan Ceuleers wrote: This means that there is no need to allocate memory for constructing the reply packet, no need to copy data from received to transmitted packet, etc. This is also false. That's not what the code does. The recvbuf structure is not even the same size as

Re: [ntp:questions] Any samples for NTP/SNTP client code?

2007-12-06 Thread Danny Mayer
Jan Ceuleers wrote: [EMAIL PROTECTED] wrote: Just look at the NTP/SNTP request format and for ***every*** field explain why would a client send it to a server. Do not pick just one field like MODE, explain for ***all*** fields. I believe that the principal reason for having the same

Re: [ntp:questions] Any samples for NTP/SNTP client code?

2007-12-05 Thread David L. Mills
(sender?), As for symmetry in request/response being uncommon, you may consder ICMP Echo/Echo Reply and even TCP as uncommon, and that is curious. The RFC describes formulas for computing the offset and delay. You consider this ***alone*** is the slowest way. You imply there are other ways to

Re: [ntp:questions] Any samples for NTP/SNTP client code?

2007-12-05 Thread Danny Mayer
[EMAIL PROTECTED] wrote: On Dec 3, 3:34 am, [EMAIL PROTECTED] (David Woolley) wrote: In article [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: QueryPerformanceCounter() directly off the hardware. Windows scheduling has no impact here, the drawbacks of tick counts do not Windows scheduling

Re: [ntp:questions] Any samples for NTP/SNTP client code?

2007-12-04 Thread Danny Mayer
Martin Burnicki wrote: AFAIK the code in the SNTP subdirectory has not yet been ported to Windows ... Martin We probably wron't try since that code is supposed to be rewritten. The effort doesn't justify the cost. Danny ___ questions mailing

Re: [ntp:questions] Any samples for NTP/SNTP client code?

2007-12-03 Thread guuwwe
On Dec 3, 3:34 am, [EMAIL PROTECTED] (David Woolley) wrote: In article [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: QueryPerformanceCounter() directly off the hardware. Windows scheduling has no impact here, the drawbacks of tick counts do not Windows scheduling will cause uncertainty in

Re: [ntp:questions] Any samples for NTP/SNTP client code?

2007-12-03 Thread Jan Ceuleers
[EMAIL PROTECTED] wrote: Just look at the NTP/SNTP request format and for ***every*** field explain why would a client send it to a server. Do not pick just one field like MODE, explain for ***all*** fields. I believe that the principal reason for having the same format for the received

Re: [ntp:questions] Any samples for NTP/SNTP client code?

2007-12-03 Thread guuwwe
On Dec 3, 2:18 pm, Jan Ceuleers [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: Just look at the NTP/SNTP request format and for ***every*** field explain why would a client send it to a server. Do not pick just one field like MODE, explain for ***all*** fields. I believe that the

Re: [ntp:questions] Any samples for NTP/SNTP client code?

2007-12-02 Thread guuwwe
On Dec 2, 7:03 am, [EMAIL PROTECTED] (David Woolley) wrote: In article [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: In article [EMAIL PROTECTED], [EMAIL PROTECTED] writes: Does anybody know of any *practical* samples on how to implement NTP/SNTP client?. The goal is to provide

Re: [ntp:questions] Any samples for NTP/SNTP client code?

2007-12-02 Thread Danny Mayer
[EMAIL PROTECTED] wrote: Does anybody know of any *practical* samples on how to implement NTP/SNTP client?. The goal is to provide accurate time for a program/client running on Windows Vista. Specifically, what values to include in the the request message, how to process the reply message,

Re: [ntp:questions] Any samples for NTP/SNTP client code?

2007-12-02 Thread Steve Kostecke
On 2007-12-02, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: On Dec 2, 7:03 am, (David Woolley) wrote: WinZip, which most power users of Windows seem to have, can handle this. Also, to the best of my recollection, gzip compiles easily on Windows and there ought to be Windows builds of it around

Re: [ntp:questions] Any samples for NTP/SNTP client code?

2007-12-02 Thread Dennis Hilberg, Jr.
[EMAIL PROTECTED] wrote: The problem with any free utilities for Windows is that I have to spend the time to decide which one of them is safe enough to install on my PC. Nowadays, most of them are infested with viruses and crapware. I plan to use my very old PC, now packed in a box. WinRAR

Re: [ntp:questions] Any samples for NTP/SNTP client code?

2007-12-02 Thread Danny Mayer
[EMAIL PROTECTED] wrote: On Dec 1, 3:40 pm, [EMAIL PROTECTED] (Hal Murray) wrote: In article [EMAIL PROTECTED], [EMAIL PROTECTED] writes: Does anybody know of any *practical* samples on how to implement NTP/SNTP client?. The goal is to provide accurate time for a program/client running on

Re: [ntp:questions] Any samples for NTP/SNTP client code?

2007-12-01 Thread Joseph Gwinn
In article [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: Does anybody know of any *practical* samples on how to implement NTP/SNTP client?. The goal is to provide accurate time for a program/client running on Windows Vista. Specifically, what values to include in the the request message,

Re: [ntp:questions] Any samples for NTP/SNTP client code?

2007-12-01 Thread Jan Ceuleers
[EMAIL PROTECTED] wrote: Does anybody know of any *practical* samples on how to implement NTP/SNTP client?. The goal is to provide accurate time for a program/client running on Windows Vista. Have you seen the sntp directory in the reference implementation tarball?

Re: [ntp:questions] Any samples for NTP/SNTP client code?

2007-12-01 Thread Hal Murray
In article [EMAIL PROTECTED], [EMAIL PROTECTED] writes: Does anybody know of any *practical* samples on how to implement NTP/SNTP client?. The goal is to provide accurate time for a program/client running on Windows Vista. Just curious. Why do you want to roll your own as compared to run one of

Re: [ntp:questions] Any samples for NTP/SNTP client code?

2007-12-01 Thread David J Taylor
[EMAIL PROTECTED] wrote: Does anybody know of any *practical* samples on how to implement NTP/SNTP client?. The goal is to provide accurate time for a program/client running on Windows Vista. [] Why not just run NTP? http://www.meinberg.de/english/sw/ntp.htm Cheers, David

Re: [ntp:questions] Any samples for NTP/SNTP client code?

2007-12-01 Thread guuwwe
On Dec 1, 3:07 pm, Joseph Gwinn [EMAIL PROTECTED] wrote: In article [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: Does anybody know of any *practical* samples on how to implement NTP/SNTP client?. The goal is to provide accurate time for a program/client running on Windows Vista.

Re: [ntp:questions] Any samples for NTP/SNTP client code?

2007-12-01 Thread guuwwe
On Dec 1, 3:40 pm, [EMAIL PROTECTED] (Hal Murray) wrote: In article [EMAIL PROTECTED], [EMAIL PROTECTED] writes: Does anybody know of any *practical* samples on how to implement NTP/SNTP client?. The goal is to provide accurate time for a program/client running on Windows Vista. Just