Class NatPunchModule
Module for UDP NAT Hole punching operations. Can be accessed from NetManager
Inheritance
NatPunchModule
Assembly: LiteNetLib.dll
Syntax
public sealed class NatPunchModule
Fields
MaxTokenLength
Declaration
public const int MaxTokenLength = 256
Field Value
UnsyncedEvents
Events automatically will be called without PollEvents method from another thread
Declaration
public bool UnsyncedEvents
Field Value
Methods
Init(INatPunchListener)
Declaration
public void Init(INatPunchListener listener)
Parameters
NatIntroduce(IPEndPoint, IPEndPoint, IPEndPoint, IPEndPoint, string)
Declaration
public void NatIntroduce(IPEndPoint hostInternal, IPEndPoint hostExternal, IPEndPoint clientInternal, IPEndPoint clientExternal, string additionalInfo)
Parameters
PollEvents()
Declaration
SendNatIntroduceRequest(IPEndPoint, string)
Declaration
public void SendNatIntroduceRequest(IPEndPoint masterServerEndPoint, string additionalInfo)
Parameters
SendNatIntroduceRequest(string, int, string)
Declaration
public void SendNatIntroduceRequest(string host, int port, string additionalInfo)
Parameters