NSMachPort is a subclass of
Port that can be used as an endpoint for distributed object connections (or raw messaging).
NSMachPort is an object wrapper for a Mach port, the fundamental communication port in macOS.
NSMachPort allows for local (on the same machine) communication only. A companion class,
SocketPort, allows for both local and remote distributed object communication, but may be more expensive than
NSMachPort for the local case.
- iOS 8.0+
- macOS 10.10+
- tvOS 9.0+
- watchOS 2.0+
NSMachPort effectively, you should be familiar with Mach ports, port access rights, and Mach messages. See the Mach OS documentation for more information.