com.onlineobject.objectnet Namespace

NatDiscoverer..::..DiscoverDeviceAsync Method

Discovers and returns an UPnp or Pmp NAT device; otherwise a NatDeviceNotFoundException exception is thrown after 3 seconds.

Namespace:  com.onlineobject.objectnet
Assembly:  ObjectNetAPI (in ObjectNetAPI.dll)

Syntax


public Task<NatDevice> DiscoverDeviceAsync()

Return Value

A NAT device

Exceptions


ExceptionCondition
com.onlineobject.objectnet..::..NatDeviceNotFoundExceptionwhen no NAT found before 3 seconds.