• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: POSIX sockets and event loops
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Re: POSIX sockets and event loops (From: "Duane Murphy" <email@hidden>)
 >Re: POSIX sockets and event loops (From: "Duane Murphy" <email@hidden>)
 >Re: POSIX sockets and event loops (From: Aaron Ballman <email@hidden>)

  • Prev by Date: Re: POSIX sockets and event loops
  • Next by Date: Re: POSIX sockets and event loops
  • Previous by thread: Re: POSIX sockets and event loops
  • Next by thread: Re: POSIX sockets and event loops
  • Index(es):
    • Date
    • Thread