Name
NSPortNameServer — Mac OS X 10.0
Synopsis
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; |
Subclasses
NSMachBootstrapServer
,
NSMessagePortNameServer
,
NSSocketPortNameServer
Get Cocoa in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.