• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: No DO connection when tool invoked via SSH
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >No DO connection when tool invoked via SSH (From: Ralph Pöllath <email@hidden>)

  • Prev by Date: Re: [SOLVED] Changing the position of a NSStatusItem
  • Next by Date: Re: *Editable* rotated text
  • Previous by thread: No DO connection when tool invoked via SSH
  • Next by thread: Use of long long's in a Cocoa program?
  • Index(es):
    • Date
    • Thread