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

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 s

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

2007-12-06 Thread Danny Mayer
[EMAIL PROTECTED] wrote: > On Dec 2, 9:34 pm, [EMAIL PROTECTED] (Danny Mayer) wrote: >> [EMAIL PROTECTED] wrote: >>> 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

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 >> Win

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 t

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, 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 t

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 2, 9:34 pm, [EMAIL PROTECTED] (Danny Mayer) wrote: > [EMAIL PROTECTED] wrote: > > 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

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 unce

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

2007-12-03 Thread Martin Burnicki
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 curious. Why do you want to roll

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

2007-12-03 Thread David Woolley
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 the time you get from your SNTP requests which you use to cal

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

2007-12-02 Thread Danny Mayer
[EMAIL PROTECTED] wrote: > 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 progr

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

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.

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

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 mess

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 go

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

2007-12-02 Thread David Woolley
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 accurate >From your description, NTP is not an option

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

2007-12-01 Thread Steve Kostecke
On 2007-12-01, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > On Dec 1, 3:40 pm, (Hal Murray) wrote: > >> I'd start at: http://support.ntp.org/bin/view/Main/SoftwareDownloads >> and look in the sntp directory. > >I did find it. However, the packages use gz formats used by Unix. My PC >does not hav

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

2007-12-01 Thread Joseph Gwinn
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > 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

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. >

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 Vi

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 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 on

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 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 messa

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

2007-12-01 Thread guuwwe
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, etc. I am NOT asking how to sen