Table of Contents

Interface IPacketForwarderCallbacks

Namespace
VpnHood.Core.Tunneling.Forwarding
Assembly
VpnHood.Core.Tunneling.dll

Represents what hears of the destinations a forwarding manager's UDP and pings reach, as the server checks them and logs them in its track log.

public interface IPacketForwarderCallbacks

Methods

OnConnectionEstablished(IpProtocol, IpEndPointValue, IpEndPointValue, bool, bool)

Takes a flow that has a new socket or a new destination, as its first packet goes.

void OnConnectionEstablished(IpProtocol protocolType, IpEndPointValue localEndPoint, IpEndPointValue remoteEndPoint, bool isNewLocalEndPoint, bool isNewRemoteEndPoint)

Parameters

protocolType IpProtocol

The packets' protocol.

localEndPoint IpEndPointValue

The flow's local endpoint: the socket's for UDP, or the packet's source with port 0 for a ping.

remoteEndPoint IpEndPointValue

The destination, with port 0 for a ping.

isNewLocalEndPoint bool

true where the flow has a new socket.

isNewRemoteEndPoint bool

true where the destination is new.

OnConnectionRequested(IpProtocol, IpEndPointValue)

Takes a new destination, before the first packet to it goes; a throw drops the packet.

void OnConnectionRequested(IpProtocol protocolType, IpEndPointValue remoteEndPoint)

Parameters

protocolType IpProtocol

The packets' protocol.

remoteEndPoint IpEndPointValue

The destination, with port 0 for a ping.