RE: UDP Sockets & Clock Synchronization
RE: UDP Sockets & Clock Synchronization
- Subject: RE: UDP Sockets & Clock Synchronization
- From: "Wade Williams" <email@hidden>
- Date: Thu, 28 Feb 2002 10:22:18 -0600
>
Everyone's ideas about the separate
>
thread are good, except for OS 9. I looked into pthreads, and as far as I
>
can tell, they are cooperative, which I believe means they would only get
>
called at WaitNextEvent(), which is every 33 ms.
You may be forced into writing two versions of your network code.
One, synchronous/blocking with threads on OS X, and the other,
async/blocking on OS9.
(This is why Apple deciding to use standard sockets in OS X was a good
thing. It allows us to use the networking model the rest of the world
uses - sync/blocking with threads, not to mention the fact that Windows or
Unix network code will port over with almost no changes)
Wade
_______________________________________________
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.