NSPortNameServer Mac OS X 10.0

This class is used by the distributed objects system to provide port registration services for NSConnection objects. Instances of NSPortNameServer are obtained using the class method systemDefaultPortNameServer. Ports are registered using the method registerPort:name:, and unregistered with removePortForName:. To locate a port, invoke portForName: or portForName:host:; the former is used to locate ports on the local host, while the latter is used to locate ports over a network.


@interface NSPortNameServer : NSObject
 // Class Methods
   + (NSPortNameServer *)systemDefaultPortNameServer;
 // Instance Methods
   - (NSPort *)portForName:(NSString *)name;
   - (NSPort *)portForName:(NSString *)name host:(NSString *)host;
   - (BOOL)registerPort:(NSPort *)port name:(NSString *)name;
   - (BOOL)removePortForName:(NSString *)name;


NSMachBootstrapServer, NSMessagePortNameServer, NSSocketPortNameServer

    Part II: API Quick Reference
    Chapter 13. Foundation Classes