• 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: Socket Callbacks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Socket Callbacks


  • Subject: Re: Socket Callbacks
  • From: Vincent Lubet <email@hidden>
  • Date: Thu, 13 Feb 2003 06:31:01 -0800

Brian,

Why don't just continue to use select() that is fully supported on Mac OS X all along with the rest of the Sockets and Un*x APIs?

Vincent

On Wednesday, February 12, 2003, at 06:04 PM, Brian Victor wrote:

I am porting unix socket software to OSX. Currently, the other unix
platforms use GTK's select() based callback mechanism to alert the
program to socket events, which the program handles using the standard
unix socket interface. I'm looking for a way to do something similar
under OSX.

My current attempt at this uses CFSocket. However, it's hitting the
callbacks at unexpected times and the unix interfaces are behaving
oddly. I suspect that may be because CFSocket handles sockets on its
own, according to
http://lists.apple.com/archives/macnetworkprog/2002/Sep/06/ cfsocketquestions.002.txt

Is there some interface available on OSX that allows me to use callbacks
only for knowing about events (input, connection received, connection
made, write), allowing me to use the existing unix code for everything
else?
_______________________________________________
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.

  • Follow-Ups:
    • Re: Socket Callbacks
      • From: Brian Victor <email@hidden>
References: 
 >Socket Callbacks (From: Brian Victor <email@hidden>)

  • Prev by Date: Re: Multi-link PPP
  • Next by Date: Canceling a asynchronous request ???
  • Previous by thread: Socket Callbacks
  • Next by thread: Re: Socket Callbacks
  • Index(es):
    • Date
    • Thread