Re: UDP Sockets & Clock Synchronization
Re: UDP Sockets & Clock Synchronization
- Subject: Re: UDP Sockets & Clock Synchronization
- From: Peter Sichel <email@hidden>
- Date: Thu, 28 Feb 2002 11:24:25 -0500
My idea was for Zack to simply spawn a separate network thread whose
sole purpose is to block waiting the reception of those UDP packets.
This is pretty close to the concept of OT notifiers and there
shouldn't be any noticeable latency -- the ping tool gets
sub-microseconds timings.
Vincent
I've tried this and observed a latency of 0-20ms.
I suspect the ping tool uses the SO_TIMESTAMP option
to capture time in microseconds (unix timeval).
I just tested SO_TIMESTAMP yesterday and it works nicely
on both UDP and raw (ICMP) sockets. I didn't notice it
sooner because it doesn't appear anywhere in Stevens books.
Kind Regards,
- Peter
--
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.