Instance Method

registerPort:name:

Makes a given port available on the network under a specified name.

Declaration

- (BOOL)registerPort:(NSPort *)port name:(NSString *)name;

Parameters

aPort

The port to make available.

portName

The name for the port.

Return Value

YES if successful, NO otherwise (for example, if another NSPort object has already been registered under portName).

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.

See Also

Registering Ports

- removePortForName:

Unregisters the port for a given name on the local host.

Deprecated