Interface IUdpDatagramHandler
Represents what takes each datagram a UDP socket receives: the server's listener host, which hands it to its session, or a client's UDP channel, which takes its own.
public interface IUdpDatagramHandler
Methods
OnDatagramReceived(UdpChannelTransmitter, Memory<byte>, IPEndPoint)
Takes a datagram the socket has received.
void OnDatagramReceived(UdpChannelTransmitter transmitter, Memory<byte> datagram, IPEndPoint remoteEndPoint)
Parameters
transmitterUdpChannelTransmitterThe transmitter whose socket received it.
datagramMemory<byte>The datagram, at least a header long, which is the handler's to open in place.
remoteEndPointIPEndPointThe endpoint it came from.