IUdpPacketSource
Ecng.Net
Interface for providing UDP packets for replay or testing.
方法
GetPacketsAsync
public IAsyncEnumerable<ValueTuple<IPEndPoint, Memory<byte>, DateTime>> GetPacketsAsync()
result = iUdpPacketSource.GetPacketsAsync()
Gets packets asynchronously.
返回值: Async enumerable of packets with endpoint, payload, and timestamp.