portForName:host:
Looks up and returns the port registered under the specified name on a specified host.
Declaration
- (NSPort *) portForName:(NSString *) name host:(NSString *) host;Parameters
- name:
The name of the desired port.
- host:
The name of the host.
hostis an Internet domain name (for example, “sales.anycorp.com”). Ifhostisnilor empty, the local host is checked.
Return Value
The port associated with name on the host host. Returns nil if no such port exists.