Pg wrote:

>     for (i = 0; i < 8; ++i) {
>         if ((k = (int)(d *= 256.0)) >= 256) k = 255;
>         packet[NTP_TRANSMIT+i] = k;
>         d -= k;
>     }

> 
> in this what is happening after deviding by NTP_SCALE and what is
> happening inside for loop.

Putting the values into network byte order.

_______________________________________________
questions mailing list
[email protected]
https://lists.ntp.org/mailman/listinfo/questions

Reply via email to