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