Re: Mach ports and namespaces
Re: Mach ports and namespaces
- Subject: Re: Mach ports and namespaces
- From: Dave Camp <email@hidden>
- Date: Mon, 10 Sep 2007 11:17:24 -0700
On Sep 10, 2007, at 9:41 AM, James Bucanek wrote:
Greetings,
I'm trying to solve a problem I'm having the distributed objects in
Cocoa. I have several processes that get started in different ways
(application, helper, daemon, ...).
My problem is that some of those processes are in different Mach
namespaces. Since (it appears that) Cocoa DO uses Mach ports for
interprocess communications, I have processes that can't connect to
other processes.
Is it possible to connect with a Mach port in a different
namespace? [ solution would be to pass the port id to the other
process and use that to create an NSMachPort object ]
Is it possible to create a Mach port in a different namespace?
[ solution would be to register/create the connection in a common
name space accessible to all processes ]
Is it possible to use some other local inter-process communications
port like BSD pipes/sockets (NOT TCP/IP)?
Technical Note TN2083 Daemons and Agents discusses namespaces and
some of the problems you might encounter with Mach ports. There might
be something in there that will help you.
<http://developer.apple.com/technotes/tn2005/tn2083.html>
Dave
_______________________________________________
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