A port that represents a BSD socket.
- macOS 10.0+
NSSocket object can be used as an endpoint for distributed object connections. Companion classes,
NSMessage, allow for local (on the same machine) communication only. The
NSSocket class allows for both local and remote communication, but may be more expensive than the others for the local case.