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
NSMachBootstrapServeris a local-only server;hostNamemust be the empty string ornil.
Return Value
The port associated with portName on the local host. Returns nil if no such port exists.