Re: Mac OS Leopard: how to spawn an child "application"?
Re: Mac OS Leopard: how to spawn an child "application"?
- Subject: Re: Mac OS Leopard: how to spawn an child "application"?
- From: Greg Guerin <email@hidden>
- Date: Sat, 11 Jun 2011 10:59:11 -0700
Nick wrote:
This "per user" idea does not let me use any advertisement-based
IPCs (like
user domain sockets or bonjour). I need some "per user only" IPC -
so other
user's instance of the process does not interfere with the current
user's
one.
A Unix domain socket can be placed anywhere in the file-system,
AFAIK. So put it in the user's home directory, probably best in a
sub-dir like ~/Library/Application Support/YourAppNameHere/. A
location under user's home dir also ensures that access permissions
are applied when addressing the socket. The name need not be
advertised if both parties already know its pathname.
http://en.wikipedia.org/wiki/Unix_domain_socket
"UNIX domain sockets use the file system as address name space."
Also, Bonjour service type names may incorporate unique identifiers.
For example, the user-name or user id, or a GUID known to both
parties. (Obey limits on service type name length, and consider
vulnerability to spoofing attacks.)
-- GG_______________________________________________
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