Initializes the receiver as a local socket with the provided arguments.
- macOS 10.0+
The protocol family for the socket port. Possible values are defined in
<sys/socket, such as
The type of socket.
The specific protocol to use from the the protocol family.
The family-specific socket address for the receiver copied into an
A local socket port initialized with the provided arguments.
The receiver must be added to a run loop before it can accept connections or receive messages. Incoming messages are passed to the receiver’s delegate method handlePortMessage:.
To create a standard TCP/IP socket, use