Contents

NSPortNameServer

An object-oriented interface to the port registration service used by the distributed objects system.

Declaration

@interface NSPortNameServer : NSObject

Overview

NSConnection objects use this interface to contact each other and to distribute objects over the network; you should rarely need to interact directly with an NSPortNameServer.

You get an NSPortNameServer object by using the systemDefaultPortNameServer class method—never allocate and initialize an instance directly. With the default server object you can register an Port object under a given name, making it available on the network, and also unregister it so that it can’t be looked up (although other applications that have already looked up the Port object can still use it until it becomes invalid). See the Port class specification for more information.

Topics

Getting the Server Object

Looking up Ports

Registering Ports

See Also

Legacy