[ntp:questions] easy query?

bob bob at coolfone.comze.com
Tue Jun 5 18:33:11 UTC 2012


Can someone tell me if the code over here is correct:

http://www.p-jansson.com/2010/03/ntp-client-using-boostasio.html

He is basically sending this as a query for a timestamp:

boost::uint8_t data[48] = {
            0x1B,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
            0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
         };

Is that legitimate?



More information about the questions mailing list