Creates a task that establishes a bidirectional TCP/IP connection using a specified network service.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
NSNetobject used to determine the endpoint of the TCP/IP connection. This network service is resolved before any data is read or written to the resulting stream task.
The new session stream task.
After you create the task, you must start it by calling its