Opens a byte stream to a nearby peer.
- iOS 7.0+
- macOS 10.10+
- Mac Catalyst 13.0+
- tvOS 10.0+
A name for the stream. This name is provided to the nearby peer.
The ID of the nearby peer.
The address of an
NSErrorpointer where an error object should be stored if something goes wrong.
An output stream object upon success or
nil if a stream could not be established.
This method is nonblocking.
For more information about performing networking with input and output streams, read Networking Programming Topics.