Skip to content

IDatagramEndpoint

Interface in Oadm.Sdk.Sites · Oadm.Sdk.dll

Datagrams in and replies out.

public interface IDatagramEndpoint

Extended or implemented by IUdpRelay

ValueTask<Datagram> ReceiveAsync(CancellationToken ct)

The next datagram. Ends with OperationCanceledException when the token is cancelled.

ValueTask SendAsync(ReadOnlyMemory<byte> data, IPEndPoint remote, CancellationToken ct)

A datagram to remote (usually a reply to a sender).