site_archiver@lists.apple.com Delivered-To: macnetworkprog@lists.apple.com It sounds like you are trying to reinvent NTP I find it hard to understand why you cannot just use it. I have been in setups -- like an isolated network -- where you just designate one machine as the Time Reference and then all other machines NTP-sync on that one. ----- Original Message ----- From: Thomas Tempelmann <tempelmann@gmail.com> To: macnetworkprog@lists.apple.com Sent: Fri, 27 Mar 2009 09:15:30 +0000 (UTC) Subject: Getting accurate timestamps for received datagrams Background: I am still working on code to synchronize the clocks of two network-connected computers. Each side tries to learn the time of the peer by repeatedly sending UDP datagrams containing its current time for the other to receive. My software then uses a "smart" algorithm to compare the sender's times with its local receive times, learning the network travel time and guessing the actual time of its peer this way. (Note: I can not use system-provided times that are sync'd over NTP, as these peers will be end-user computers and I cannot mess with their time settings. Also, their firewall might block such ports. All I have control over are is single open UDP/TCP port for my app.) _______________________________________________ Do not post admin requests to the list. They will be ignored. Macnetworkprog mailing list (Macnetworkprog@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/macnetworkprog/site_archiver%40lists.... This email sent to site_archiver@lists.apple.com