C# Class Open.Nat.PmpNatDevice

Inheritance: NatDevice
显示文件 Open project: mcatanzariti/Open.NAT

Private Properties

Property Type Description
CreatePortMapListen void
InternalCreatePortMapAsync Task
PmpNatDevice System

Public Methods

Method Description
CreatePortMapAsync ( Open.Nat.Mapping mapping ) : Task
DeletePortMapAsync ( Open.Nat.Mapping mapping ) : Task
GetAllMappingsAsync ( ) : Task>
GetExternalIPAsync ( ) : Task
GetSpecificMappingAsync ( Protocol protocol, int port ) : Task
ToString ( ) : string

Private Methods

Method Description
CreatePortMapListen ( UdpClient udpClient, Open.Nat.Mapping mapping ) : void
InternalCreatePortMapAsync ( Open.Nat.Mapping mapping, bool create ) : Task
PmpNatDevice ( IPAddress localAddress, IPAddress publicAddress ) : System

Method Details

CreatePortMapAsync() public method

public CreatePortMapAsync ( Open.Nat.Mapping mapping ) : Task
mapping Open.Nat.Mapping
return Task

DeletePortMapAsync() public method

public DeletePortMapAsync ( Open.Nat.Mapping mapping ) : Task
mapping Open.Nat.Mapping
return Task

GetAllMappingsAsync() public method

public GetAllMappingsAsync ( ) : Task>
return Task>

GetExternalIPAsync() public method

public GetExternalIPAsync ( ) : Task
return Task

GetSpecificMappingAsync() public method

public GetSpecificMappingAsync ( Protocol protocol, int port ) : Task
protocol Protocol
port int
return Task

ToString() public method

public ToString ( ) : string
return string