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

Socket Callbacks


  • Subject: Socket Callbacks
  • From: Brian Victor <email@hidden>
  • Date: Wed, 12 Feb 2003 21:04:12 -0500

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?

Thanks in advance!

--
Brian
_______________________________________________
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: Vincent Lubet <email@hidden>
  • Prev by Date: Re: Sleeping laptop, running code?
  • Next by Date: Re: Media Type of Shared Volume
  • Previous by thread: Re: Are OT calls MP safe
  • Next by thread: Re: Socket Callbacks
  • Index(es):
    • Date
    • Thread