Instance Method

portForName:host:

Returns the NSPort object registered under a given name on the local host.

Declaration

- (NSPort *)portForName:(NSString *)name host:(NSString *)host;

Parameters

portName

The port name.

hostName

The host name. Because NSMessagePortNameServer is a local-only server, hostName must be the empty string or nil.

Return Value

The NSPort object registered under a given name on the local host. Returns nil if a port named portName does not exist.

See Also

Getting Ports By Name

- portForName:

Returns the NSPort object registered under a given name on the local host.

Deprecated