DekGenius.com
[ Team LiB ] Previous Section Next Section

NSMachPort Mac OS X 10.0

This subclass of NSPort provides an object-oriented wrapper to Mach IPC ports, which can be used either as endpoint for distributed object connections, or for raw messaging. NSMachPort objects only support local messaging; NSSocketPort provides support for remote messaging over a network.

figs/cocn_1351.gif

@interface NSMachPort : NSPort
 // Initializers
   - (id)initWithMachPort:(int)machPort;
 // Class Methods
   + (NSPort *)portWithMachPort:(int)machPort;
 // Instance Methods
   - (int)machPort;
   - (void)removeFromRunLoop:(NSRunLoop *)runLoop forMode:(NSString *)mode;
   - (void)scheduleInRunLoop:(NSRunLoop *)runLoop forMode:(NSString *)mode;
// Methods Implemented by the Delegate
   - (void)handleMachMessage:(void *)msg;

    [ Team LiB ] Previous Section Next Section