Initializes the receiver as a remote socket with the provided arguments.
SDK
- macOS 10.0+
Framework
- Foundation
Declaration
Parameters
family
The protocol family for the socket port. Possible values are defined in
<sys/socket
, such as.h> AF
,_LOCAL AF
, and_INET AF
._INET6 type
The type of socket.
protocol
The specific protocol to use from the the protocol family.
address
The family-specific socket address for the receiver copied into an
NSData
object.
Discussion
A connection is not opened to the remote address until data is sent.