registerPort:name:
Makes a given port available on the network under a specified name.
Declaration
- (BOOL) registerPort:(NSPort *) port name:(NSString *) name;Parameters
- port:
The port to make available.
- name:
The name for the port.
Return Value
true if successful, false otherwise (for example, if another NSPort object has already been registered under name).
Discussion
A port can be registered under multiple names. If it is, it must be unregistered for each name with removePortForName: to make it completely unavailable.