Re: POSIX sockets and event loops
Re: POSIX sockets and event loops
- Subject: Re: POSIX sockets and event loops
- From: Douglas Davidson <email@hidden>
- Date: Thu, 20 May 2004 16:57:54 -0700
On May 20, 2004, at 3:33 PM, Aaron Ballman wrote:
Ah, but unfortunately I am not using any of the CFSocket stuff because
the socket code itself is meant to run on Linux as well as OS X and
Windows (with minor tweaks because Windows tends to not be very
POSIX-friendly in some cases). So I am trying to stick as close to
POSIX as I can so I don't have to maintain too many different code
forks.
Presumably the code dealing with the main event loop, calling
WaitNextEvent, etc. is platform-dependent; in that case it is not too
much of a stretch to consider the CFSocket calls as part of that piece
of code rather than part of the Posix portion of your code. When you
use CFSocket, except for the actual select call itself, you can
continue to use exactly the same socket calls you would otherwise use
for reading, writing, and configuring your sockets.
Douglas Davidson
_______________________________________________
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.