Table of Contents

Interface IUdpDatagramHandler

Namespace
VpnHood.Core.Tunneling.Channels
Assembly
VpnHood.Core.Tunneling.dll

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

transmitter UdpChannelTransmitter

The transmitter whose socket received it.

datagram Memory<byte>

The datagram, at least a header long, which is the handler's to open in place.

remoteEndPoint IPEndPoint

The endpoint it came from.