Opens the flow, indicating to the system that the caller is ready to start receiving and sending data.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
NWHostobject that contains the address and port to set as the local address and local port of the flow.
The system supplies this information to the app that triggered the creation of this flow in different ways, depending on the networking API the app used. For example, if the app used the Network framework, it gets this information from the
localproperty of the current path. If it used BSD Sockets, it gets this information by calling
nilto have the system derive a value based on the address of the current primary physical interface.
Called when the open operation is complete. This block has no return value and takes the following parameter:
nilvalue indicates the flow opened successfully. A non-
nilvalue indicates the flow could not be opened. See
NEAppfor a list of expected error codes.
Proxy Flow Error