NatDiscoverer Methods
The NatDiscoverer type exposes the following members.
Methods
Name | Description | |
---|---|---|
DiscoverDeviceAsync()()()() |
Discovers and returns an UPnp or Pmp NAT device; otherwise a NatDeviceNotFoundException
exception is thrown after 3 seconds.
|
|
DiscoverDeviceAsync(PortMapper, CancellationTokenSource) |
Discovers and returns a NAT device for the specified type; otherwise a NatDeviceNotFoundException
exception is thrown when it is cancelled.
|
|
DiscoverDevicesAsync |
Discovers and returns all NAT devices for the specified type. If no NAT device is found it returns an empty enumerable
|
|
ReleaseAll |
Release all ports opened by Open.NAT.
|