portForName:
Looks up and returns the port registered under the specified name on the local host.
Declaration
- (NSPort *) portForName:(NSString *) name;Parameters
- name:
The name of the desired port.
Return Value
The port associated with portName on the local host. Returns nil if no such port exists.
Discussion
Invokes portForName:host:nameServerPortNumber: with nil as the host name and 0 as the name server port number.