NEPacketTunnelFlow.ReadPacketsAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Reads packets from the TUN interface and runs a handler when the operation completes.
public virtual System.Threading.Tasks.Task<NetworkExtension.NEPacketTunnelFlowReadResult> ReadPacketsAsync ();
abstract member ReadPacketsAsync : unit -> System.Threading.Tasks.Task<NetworkExtension.NEPacketTunnelFlowReadResult>
override this.ReadPacketsAsync : unit -> System.Threading.Tasks.Task<NetworkExtension.NEPacketTunnelFlowReadResult>
Returns
A task that represents the asynchronous ReadPackets operation. The value of the TResult parameter is of type System.Action<Foundation.NSData[],Foundation.NSNumber[]>.