Interface INatPunchListener
Assembly: LiteNetLib.dll
Syntax
public interface INatPunchListener
Methods
OnNatIntroductionRequest(IPEndPoint, IPEndPoint, String)
Declaration
void OnNatIntroductionRequest(IPEndPoint localEndPoint, IPEndPoint remoteEndPoint, string token)
Parameters
| Type |
Name |
Description |
| System.Net.IPEndPoint |
localEndPoint |
|
| System.Net.IPEndPoint |
remoteEndPoint |
|
| System.String |
token |
|
OnNatIntroductionSuccess(IPEndPoint, NatAddressType, String)
Declaration
void OnNatIntroductionSuccess(IPEndPoint targetEndPoint, NatAddressType type, string token)
Parameters
| Type |
Name |
Description |
| System.Net.IPEndPoint |
targetEndPoint |
|
| NatAddressType |
type |
|
| System.String |
token |
|