Jump to content
  • Advertisement
Sign in to follow this  
Daedalus AI

SNTP in C

This topic is 4838 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey again, Still stuck on this assignment (creating an SNTP client). The last time I was getting problems with the assignment, I was unable to receive a response from any time servers as it was just hanging on the recv() function after I sent the Time Request Packet to the Host I was connected to(I'm coding it in Linux). I'm now receiving the packet (all 48 bytes) back with the timestamp inserted by the Host....the problem now is that I have no idea what to do with it (the 64 bit timestamp, that I've stripped from the packet). This number also to appears to fluptuate a lot each time I run the program. Does anyone know what I'm supposed to do with this number to make it into a human readable format (i.e. 10:25PM etc)? Thanx Daed.

Share this post


Link to post
Share on other sites
Advertisement
Lol, I wish. I've read (well, scanned through) all the RFC's I need, but I guess I keep misunderstanding them. They always have to write them as cryptic as possible, just wish there was more out on the net about this protocol rather than just the RFC's and SNTP products.

Thanx though, I guess I'm gonna have to try to properly understand the RFC's better, by reading them more.

Daed.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!