Well crap, I was happily ripping out the background-thread-runloop code from the 3rd party network library I’m using, when I ran into a case I can’t get rid of. The library implements a listener socket to accept incoming TCP connections, and it uses CFSocket for it. To schedule that it uses CFSocketCreateRunLoopSource and CFRunLoopAddSource. I can’t find any alternatives to schedule a CFSocket on a dispatch queue (nor would I expect to, since I know CFSocket is a pretty ancient API.) There’s probably an alternative way to run a listener/server socket, which could be scheduled on a dispatch queue, but I’m not too handy with BSD network APIs and I’ve never looked at dispatch_io. Anyone got any sample code or snippets? —Jens _______________________________________________ Do not post admin requests to the list. They will be ignored. Macnetworkprog mailing list (Macnetworkprog@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/macnetworkprog/site_archiver%40lists... This email sent to site_archiver@lists.apple.com