Contents

portForName:host:

Looks up and returns the port registered under the specified name.

Declaration

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

Parameters

  • name:

    The name of the desired port.

  • host:

    Because NSMachBootstrapServer is a local-only server; hostName must be the empty string or nil.

Return Value

The port associated with portName on the local host. Returns nil if no such port exists.

See Also

Looking up Ports