O'Reilly logo

Cocoa in a Nutshell by James Duncan Davidson, Michael Beam

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

NSMessagePortNameServer — Mac OS X 10.0

Synopsis

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.

image with no caption

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required