Home > other >  Write your own NTP service program, in response to a client request, and returns the data packets, t
Write your own NTP service program, in response to a client request, and returns the data packets, t

Time:10-02

Write your own NTP service program, in response to a client request, and returns the data packets, the client have no reaction, or does not recognise, time can't sync, with caught tool view, data format and content are correct! O great god had done the NTP service project great god help!!!!!!

CodePudding user response:

Can look for a normal server, contrast, or find the related agreement, see what are the rules,

CodePudding user response:

I open the Windows's own NTP service, then caught contrast, basic data, response data is not, but I am online to see a lot of relevant agreements, and do what they say, but still won't do!

CodePudding user response:

Asia.pool.ntp.org, you try the NTP server,

CodePudding user response:

NTP head data to strictly according to the RFC documents, data of filling head also should in strict accordance with the specifications, not according to themselves caught data set package once finished

CodePudding user response:

Problem has been resolved, is a code problem, when parsing packets, with the double data type storage when the client sends a request timestamp accuracy is not enough, data loss, caused the timestamp of the request and response, so the client does not recognise the response packet, give up the time synchronization
  • Related