Class NatPunchThroughHandler
Inheritance
System.Object
NatPunchThroughHandler
Assembly: Eco.Shared.dll
Syntax
public class NatPunchThroughHandler : Object
Constructors
NatPunchThroughHandler(IUnconnectedUdpPeer, NatPunchThroughHandler.PeerKind)
Declaration
public NatPunchThroughHandler(IUnconnectedUdpPeer peer, NatPunchThroughHandler.PeerKind kind)
Parameters
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
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
Returns
Type |
Description |
System.Boolean |
|
Extension Methods