Show / Hide Table of Contents

# Interface INatPunchListener

###### Namespace: LiteNetLib

###### 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
--- | --- | ---
IPEndPoint | localEndPoint |
IPEndPoint | remoteEndPoint |
string | token |

#### OnNatIntroductionSuccess(IPEndPoint, NatAddressType, string)

##### Declaration

    void OnNatIntroductionSuccess(IPEndPoint targetEndPoint, NatAddressType type, string token)

##### Parameters

Type | Name | Description
--- | --- | ---
IPEndPoint | targetEndPoint |
NatAddressType | type |
string | token |