Re: Discovering host to use in rootProxyForConnectionWithRegisteredName:host:

2008-12-28 Thread Ken Tozier
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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/kentozier%40comcast.net

This email sent to kentoz...@comcast.net


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Discovering host to use in rootProxyForConnectionWithRegisteredName:host:

2008-12-27 Thread Ken Tozier

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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com