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
protocolTypeIpProtocolThe packets' protocol.
localEndPointIpEndPointValueThe flow's local endpoint: the socket's for UDP, or the packet's source with port 0 for a ping.
remoteEndPointIpEndPointValueThe destination, with port 0 for a ping.
isNewLocalEndPointbooltrue where the flow has a new socket.
isNewRemoteEndPointbooltrue 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
protocolTypeIpProtocolThe packets' protocol.
remoteEndPointIpEndPointValueThe destination, with port 0 for a ping.