2

I have an assignment for developing a messenger for 1 server and 3 clients. I am facing a problem with time synchronization: I have to synchronize the server time with the internet and then synchronize the clients also. How can I accomplish this?

Rob Hruska
  • 118,520
  • 32
  • 167
  • 192
user691380
  • 21
  • 1
  • 2
  • 2
    Time Synchronization should be a something the OS should be doing. But since this is homework, I would suggest you use an NTP library. – Peter Lawrey Apr 04 '11 at 16:10

1 Answers1

7

Use NTP to synchronize the different clocks. You'll want an NTP library, perhaps this one.

See also

Community
  • 1
  • 1
Matt Ball
  • 354,903
  • 100
  • 647
  • 710