Set a read handler for datagrams
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+Beta
A handler called when datagrams have been read, or when an error has occurred.
The maximum number of datagrams to send to the handler.
Reads will be scheduled by the system, so this method only needs to be called once for a session.