Show / Hide Table of Contents

Class NatPunchThroughHandler

Inheritance
System.Object
NatPunchThroughHandler
Namespace: Eco.Shared.Networking
Assembly: Eco.Shared.dll
Syntax
public class NatPunchThroughHandler : Object

Constructors

NatPunchThroughHandler(IUnconnectedUdpPeer, NatPunchThroughHandler.PeerKind)

Declaration
public NatPunchThroughHandler(IUnconnectedUdpPeer peer, NatPunchThroughHandler.PeerKind kind)
Parameters
Type Name Description
IUnconnectedUdpPeer peer
NatPunchThroughHandler.PeerKind kind

Fields

Version

Declaration
public const int Version = 0
Field Value
Type Description
System.Int32

Methods

HandleNatIntroduction(ref ByteSpanReader)

Declaration
public void HandleNatIntroduction(ref ByteSpanReader reader)
Parameters
Type Name Description
ByteSpanReader reader

HandleNatIntroductionConfirmRequest(IPEndPoint, ref ByteSpanReader)

Declaration
public void HandleNatIntroductionConfirmRequest(IPEndPoint senderEndPoint, ref ByteSpanReader reader)
Parameters
Type Name Description
System.Net.IPEndPoint senderEndPoint
ByteSpanReader reader

HandleNatPunchMessage(IPEndPoint, ref ByteSpanReader)

Declaration
public void HandleNatPunchMessage(IPEndPoint senderEndPoint, ref ByteSpanReader reader)
Parameters
Type Name Description
System.Net.IPEndPoint senderEndPoint
ByteSpanReader reader

Introduce(IPEndPoint, IPEndPoint, IPEndPoint, IPEndPoint, String)

Declaration
public void Introduce(IPEndPoint hostInternal, IPEndPoint hostExternal, IPEndPoint clientInternal, IPEndPoint clientExternal, string token)
Parameters
Type Name Description
System.Net.IPEndPoint hostInternal
System.Net.IPEndPoint hostExternal
System.Net.IPEndPoint clientInternal
System.Net.IPEndPoint clientExternal
System.String token

SendIntroduction(IPEndPoint, NatPunchThroughHandler.PeerKind, IPEndPoint, IPEndPoint, String)

Declaration
public void SendIntroduction(IPEndPoint peerEndPoint, NatPunchThroughHandler.PeerKind peerKind, IPEndPoint internalEndPoint, IPEndPoint externalEndPoint, string token)
Parameters
Type Name Description
System.Net.IPEndPoint peerEndPoint
NatPunchThroughHandler.PeerKind peerKind
System.Net.IPEndPoint internalEndPoint
System.Net.IPEndPoint externalEndPoint
System.String token

SendNatIntroductionConfirmed(IPEndPoint, String)

Declaration
public void SendNatIntroductionConfirmed(IPEndPoint toEndPoint, string token)
Parameters
Type Name Description
System.Net.IPEndPoint toEndPoint
System.String token

SendNatPunch(IPEndPoint, String)

Declaration
public void SendNatPunch(IPEndPoint toEndPoint, string token)
Parameters
Type Name Description
System.Net.IPEndPoint toEndPoint
System.String token

TryHandleNatIntroductionConfirmed(ref ByteSpanReader, out String)

Declaration
public bool TryHandleNatIntroductionConfirmed(ref ByteSpanReader reader, out string token)
Parameters
Type Name Description
ByteSpanReader reader
System.String token
Returns
Type Description
System.Boolean

Extension Methods

CommandLine.FeedFromCommandLine(Object)
CommandLine.ToCommandLineArgs(Object, Func<Object, Boolean>)
ListUtil.DepthFirstTraversal<T>(T, Func<T, IEnumerable<T>>)
EnumerableExtensions.SingleItemAsEnumerable<T>(T)
EventUtils.RaiseEvent<TEventArgs>(Object, String, TEventArgs)
PredicateUtils.MatchesAll<TEnumerable, T>(T, TEnumerable)
PredicateUtils.MatchesAll<T>(T, Func<T, Boolean>[])
PredicateUtils.MatchesAny<TEnumerable, T>(T, TEnumerable)
ReflectionUtils.PropertyValue<T>(Object, PropertyInfo)
ReflectionUtils.TryGetPropertyValueByName<T>(Object, String, out T)
ReflectionUtils.GetPropertyValueByName<T>(Object, String)
ReflectionUtils.SetPropertyByName(Object, String, Object)
ReflectionUtils.GetStructPropertyByName<T>(Object, String)
ReflectionUtils.GetStringPropertyByName(Object, String)
ReflectionUtils.ZipByProperty<T>(Object, Object, Object, Func<T, T, T>)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾