Re: No DO connection when tool invoked via SSH
Re: No DO connection when tool invoked via SSH
- Subject: Re: No DO connection when tool invoked via SSH
- From: Wade Tregaskis <email@hidden>
- Date: Sat, 13 Nov 2004 09:13:48 +1100
my command line tool talks to my app via DO using the default
NSMachPorts, but when I run my tool while logged in via SSH,
[NSConnection rootProxyForConnectionWithRegisteredName:@"connName"
host:nil]
returns nil.
I assume I could get it to work with NSSocketPorts, but why doesn't it
work like this when both processes are running on the same machine?
To hazard a guess, I would say because a SSH session has it's own
security session associated with it, distinct from the startup & GUI
login sessions. Whether it has it's own mach namespace or not I don't
know, but if nothing else the former will probably give you headaches
trying to do mach messaging anyway. Apple do have documentation on
this somewhere (I was reading it just last week), and you could also
try asking on their CDSA list, if it is indeed a session issue.
And yes, socket ports should work fine - I'm pretty sure I've used them
in this way before, without issue (other than performance, which is
pretty negligible).
Wade Tregaskis (AIM, Yahoo & Skype: wadetregaskis, ICQ: 40056898, MSN &
email: email@hidden, Jabber:
email@hidden)
-- Sed quis custodiet ipsos custodes?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden