Re: Troubleshooting CFMessagePort
Re: Troubleshooting CFMessagePort
- Subject: Re: Troubleshooting CFMessagePort
- From: Dave Keck <email@hidden>
- Date: Thu, 6 Jan 2011 19:48:25 -0500
I don't see anything obviously wrong with your code after a cursory
glance. I assume you're familiar with the bootstrap context issues
mentioned in TN2083 and elsewhere?
If you can post a complete example that exhibits the problem, I'd be
happy to investigate further. However, consider using NSMachPort
instead of CFMessagePort; you can lose a lot of code in doing so.
Here's an example showing how to set up a client and server using
NSMachPort and NSMachBootstrapServer:
http://pastie.org/1435791
This code would of course work the same if the client and server were
in separate processes, assuming the server port is registered in a
bootstrap context that's visible to the client.
> Is there any utility to maybe probe the Mach ports that my app has open? I can't find anything like that.
top(1) and Activity Monitor can list the number of ports a process has
open, but I'm not aware of any utilities that go into any more detail.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden