On Fri, Jan 31, 2014 at 12:34 AM, Sadia Bashir <11msccssbas...@seecs.edu.pk> wrote: > Hello everyone; > > I want to write NTP client which sends and receives NTP packet to NTP server > and should read the value from one of the four offsets and convert it to > user readable local or GMT time format, I specifically want to know which > offsets should I read in order to get correct timestamp from the packet. > Any suggestion or help will be appreciated. >
Any time you're looking at network protocols, the one obvious place to look is the RFCs. Just do a web search for 'rfc ntp' to find the relevant ones. In my case, the search results pulled up a couple of good-looking hits from ietf.org (the Internet Engineering Task Force - those guys are the authority on this sort of matter), plus the Wikipedia article for NTP, with a section "Relevant RFCs", which would make good reading. Enjoy! Networking's awesome fun. ChrisA -- https://mail.python.org/mailman/listinfo/python-list