C# Class PeerCastStation.UI.PortMapper.NatPmpDevice

Inheritance: INatDevice
显示文件 Open project: kumaryu/peercaststation Class Usage Examples

Public Methods

Method Description
GetExternalAddressAsync ( CancellationToken cancel_token ) : Task
MapAsync ( MappingProtocol protocol, int port, System.TimeSpan lifetime, CancellationToken cancel_token ) : Task
NatPmpDevice ( IPAddress device_address ) : System
UnmapAsync ( MappingProtocol protocol, int port, CancellationToken cancel_token ) : Task

Private Methods

Method Description
MapAsyncInternal ( MappingProtocol protocol, int port, int lifetime, CancellationToken cancel_token ) : Task

Method Details

GetExternalAddressAsync() public method

public GetExternalAddressAsync ( CancellationToken cancel_token ) : Task
cancel_token System.Threading.CancellationToken
return Task

MapAsync() public method

public MapAsync ( MappingProtocol protocol, int port, System.TimeSpan lifetime, CancellationToken cancel_token ) : Task
protocol MappingProtocol
port int
lifetime System.TimeSpan
cancel_token System.Threading.CancellationToken
return Task

NatPmpDevice() public method

public NatPmpDevice ( IPAddress device_address ) : System
device_address System.Net.IPAddress
return System

UnmapAsync() public method

public UnmapAsync ( MappingProtocol protocol, int port, CancellationToken cancel_token ) : Task
protocol MappingProtocol
port int
cancel_token System.Threading.CancellationToken
return Task