C# Class PeerCastStation.UI.PortMapper.WANConnectionService

Inheritance: UPnPService, INatDevice
Mostra file Open project: kumaryu/peercaststation

Public Properties

Property Type Description
PortMappingDescription string

Public Methods

Method Description
GetExternalAddressAsync ( CancellationToken cancel_token ) : Task
MapAsync ( MappingProtocol protocol, int port, System.TimeSpan lifetime, CancellationToken cancel_token ) : Task
UnmapAsync ( MappingProtocol protocol, int port, CancellationToken cancel_token ) : Task
WANConnectionService ( UPnPServiceDescription service_desc ) : System

Private Methods

Method Description
GetInternalAddressAsync ( ) : Task
IsOnSameNetwork ( IPAddress mask, IPAddress addr1, IPAddress addr2 ) : bool

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

UnmapAsync() public method

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

WANConnectionService() public method

public WANConnectionService ( UPnPServiceDescription service_desc ) : System
service_desc UPnPServiceDescription
return System

Property Details

PortMappingDescription public_oe static_oe property

public static string PortMappingDescription
return string