Show / Hide Table of Contents

Class NatPunchModule

Module for UDP NAT Hole punching operations. Can be accessed from NetManager

Inheritance
System.Object
NatPunchModule
Namespace: LiteNetLib
Assembly: LiteNetLib.dll
Syntax
public sealed class NatPunchModule

Fields

MaxTokenLength

Declaration
public const int MaxTokenLength = 256
Field Value
Type Description
System.Int32

Methods

Init(INatPunchListener)

Declaration
public void Init(INatPunchListener listener)
Parameters
Type Name Description
INatPunchListener listener

NatIntroduce(IPEndPoint, IPEndPoint, IPEndPoint, IPEndPoint, String)

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

PollEvents()

Declaration
public void PollEvents()

SendNatIntroduceRequest(IPEndPoint, String)

Declaration
public void SendNatIntroduceRequest(IPEndPoint masterServerEndPoint, string additionalInfo)
Parameters
Type Name Description
System.Net.IPEndPoint masterServerEndPoint
System.String additionalInfo
Back to top Generated by DocFX