Contents

registerPort:name:

Registers a given port as a network service with the specified name in the local domain.

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.

Discussion

Invokes registerPort:name:nameServerPortNumber: with 0 as the name server port number.

See Also

Registering and Removing Ports