• 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: Discovering host to use in rootProxyForConnectionWithRegisteredName:host:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Discovering host to use in rootProxyForConnectionWithRegisteredName:host:


  • Subject: Re: Discovering host to use in rootProxyForConnectionWithRegisteredName:host:
  • From: Ken Tozier <email@hidden>
  • Date: Sun, 28 Dec 2008 03:16:32 -0500

I got my terminology mixed up. Wherever you see "local domain" substitute "domain of the computer vending the distributed object"

On Dec 28, 2008, at 2:58 AM, Ken Tozier wrote:

Hi

I'm trying to set up a distributed object client, but can't see any way to get the local domain (not localhost) to use in rootProxyForConnectionWithRegisteredName:host: The documentation for NSConnection states that:

"The host name. The domain name hostName is an Internet domain name (for example, "sales.anycorp.com"). If hostName is nil or empty, then only the local host is searched for the named NSConnection object."

But it doesn't offer any info for the presumably common case where you know the registered name and know it is on the local domain, but is not localhost.

I looked into NSNetServiceBrowser's searchForServicesOfType: inDomain: to find the known service name but that requires that you know the service type. NSConnection, of course makes no mention of what type it registers distributed objects, so it seems, at least from available documentation, that you are forced to hard code in domains. I'm sure this must be just a documentation bug, so how does one discover the local domain?

Thanks for any help


_______________________________________________

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

_______________________________________________

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


References: 
 >Discovering host to use in rootProxyForConnectionWithRegisteredName:host: (From: Ken Tozier <email@hidden>)

  • Prev by Date: Discovering host to use in rootProxyForConnectionWithRegisteredName:host:
  • Next by Date: Re: How do I include a URL in a preprocessed Info.plist?
  • Previous by thread: Discovering host to use in rootProxyForConnectionWithRegisteredName:host:
  • Next by thread: Find with Nonspacing_Mark
  • Index(es):
    • Date
    • Thread