Write a single datagram
- iOS 9.0+
- macOS 10.11+
- UIKit for Mac 13.0+Beta
NSDataobject containing the datagram to write. To improve performance, this should be an immutable data object.
A handler called when the write request has either succeeded or failed.
Callers should wait until the
completion is executed before issuing another write.