Read IP packets from the TUN interface.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
A block that is executed when some packets are read from the TUN interface. The packets that were read are passed to this block in the
packetsarray. The protocol numbers of the packets that were read are passed to this block in the
protocolsarray. Each packet has a protocol number in the corresponding index in the
protocolsarray. The protocol numbers are given in host byte order. Valid protocol numbers include
Each call to this method results in a single execution of the completion handler. The caller should call this method after each
completion execution in order to continue to receive packets from the TUN interface.