MonobjcMonobjc Documented Class Library
ConnectionWithRegisteredNameHost Method (name, hostName)
NamespacesMonobjc.FoundationNSConnectionConnectionWithRegisteredNameHost(NSString, NSString)

Returns the NSConnection object whose send port links it to the NSConnection object registered with the default NSPortNameServer under a given name on a given host.

Original signature is '+ (id)connectionWithRegisteredName:(NSString *)name host:(NSString *)hostName'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static NSConnection ConnectionWithRegisteredNameHost(
	NSString name,
	NSString hostName
)
Public Shared Function ConnectionWithRegisteredNameHost ( _
	name As NSString, _
	hostName As NSString _
) As NSConnection
public:
static NSConnection^ ConnectionWithRegisteredNameHost(
	NSString^ name, 
	NSString^ hostName
)
Parameters
name (NSString)
The name of an NSConnection object.
hostName (NSString)
The name of the host. 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.
Return Value
The NSConnection object whose send port links it to the NSConnection object registered with the default NSPortNameServer under name on the host named hostName. Returns nil if no NSConnection object can be found for name and hostName. The returned NSConnection object is a child of the default NSConnection object for the current thread (that is, it shares the default NSConnection object's receive port).
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.Foundation (Module: Monobjc.Foundation)