C# Class Open.Nat.UpnpNatDevice

Inheritance: NatDevice
Show file Open project: mcatanzariti/Open.NAT Class Usage Examples

Public Methods

Method Description
CreatePortMapAsync ( Open.Nat.Mapping mapping ) : System.Threading.Tasks.Task
DeletePortMapAsync ( Open.Nat.Mapping mapping ) : System.Threading.Tasks.Task
GetAllMappingsAsync ( ) : Task>
GetExternalIPAsync ( ) : Task
GetGenericMappingAsync ( int index, List mappings, TaskCompletionSource taskCompletionSource ) : void
GetSpecificMappingAsync ( Protocol protocol, int port ) : Task
ToString ( ) : string

Private Methods

Method Description
UpnpNatDevice ( Open.Nat.UpnpNatDeviceInfo deviceInfo ) : System

Method Details

CreatePortMapAsync() public method

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

DeletePortMapAsync() public method

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

GetAllMappingsAsync() public method

public GetAllMappingsAsync ( ) : Task>
return Task>

GetExternalIPAsync() public method

public GetExternalIPAsync ( ) : Task
return Task

GetGenericMappingAsync() public method

public GetGenericMappingAsync ( int index, List mappings, TaskCompletionSource taskCompletionSource ) : void
index int
mappings List
taskCompletionSource TaskCompletionSource
return void

GetSpecificMappingAsync() public method

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

ToString() public method

public ToString ( ) : string
return string