NSMessagePortNameServer

NSMessagePortNameServer Mac OS X 10.0

This subclass of NSPortNameServer accepts and returns instances of NSMessagePort. NSConnection objects use port name servers to register and discover communication ports that can be used for distributed objects connections. Additional subclasses of NSPortNameServer that handle other types of ports are NSMachBootstrapServer and NSSocketPortNameServer.

figs/cocn_1353.gif

@interface NSMessagePortNameServer : NSPortNameServer
 // Class Methods
   + (id)sharedInstance;
 // Instance Methods
   - (NSPort *)portForName:(NSString *)name;
   - (NSPort *)portForName:(NSString *)name
     host:(NSString *)host;



    Part II: API Quick Reference
    Chapter 13. Foundation Classes