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.