C# Class PeerCastStation.UI.PortMapper.WANConnectionService

Inheritance: UPnPService, INatDevice
Afficher le fichier Open project: kumaryu/peercaststation

Méthodes publiques

Свойство Type Description
PortMappingDescription string

Méthodes publiques

Méthode 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

Méthode Description
GetInternalAddressAsync ( ) : Task
IsOnSameNetwork ( IPAddress mask, IPAddress addr1, IPAddress addr2 ) : bool

Method Details

GetExternalAddressAsync() public méthode

public GetExternalAddressAsync ( CancellationToken cancel_token ) : Task
cancel_token System.Threading.CancellationToken
Résultat Task

MapAsync() public méthode

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
Résultat Task

UnmapAsync() public méthode

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

WANConnectionService() public méthode

public WANConnectionService ( UPnPServiceDescription service_desc ) : System
service_desc UPnPServiceDescription
Résultat System

Property Details

PortMappingDescription public_oe static_oe property

public static string PortMappingDescription
Résultat string