Click or drag to resize

NatPunchModule Class

Module for UDP NAT Hole punching operations. Can be accessed from NetManager
Inheritance Hierarchy
SystemObject
  LiteNetLibNatPunchModule

Namespace: LiteNetLib
Assembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.2.1.0 (2026.2.1.0)
Syntax
C#
public sealed class NatPunchModule

The NatPunchModule type exposes the following members.

Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodInit Initializes the NAT punch module with a listener to handle punchthrough events.
Public methodNatIntroduce Sends NAT introduction packets to both the host and the client to facilitate punchthrough.
Public methodPollEvents Triggers queued NAT punchthrough events (Success or Request) on the provided INatPunchListener.
Public methodSendNatIntroduceRequest(IPEndPoint, String) Sends a request to the Master Server to introduce this peer to another peer.
Public methodSendNatIntroduceRequest(String, Int32, String) Sends a request to the Master Server to introduce this peer to another peer.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Fields
 NameDescription
Public fieldStatic memberMaxTokenLength Maximum allowed length for the NAT introduction token string.
Public fieldUnsyncedEvents Events automatically will be called without PollEvents method from another thread
Top
Extension Methods
 NameDescription
Public Extension MethodMethodInvoke Calls the object method by name.
(Defined by ObjectEx)
Public Extension MethodPropertyGet Gets the value of the object property by name.
(Defined by ObjectEx)
Public Extension MethodPropertyGetT Gets the value of the object property by name.
(Defined by ObjectEx)
Public Extension MethodPropertySet Sets the value of the object property by name.
(Defined by ObjectEx)
Top
See Also