port(withMachPort:)
Creates and returns a port object configured with the given Mach port.
Declaration
class func port(withMachPort machPort: UInt32) -> PortParameters
- machPort:
The Mach port for the new port. This parameter should originally be of type mach_port_t.
Return Value
An NSMachPort object that uses machPort to send or receive messages.
Discussion
Creates the port object if necessary. Depending on the access rights associated with machPort, the new port object may be usable only for sending messages.
See Also
Related Documentation
- Distributed Objects Programming Topics