UPNP.discover

Discovers local UPNPDevices. Clears the list of previously discovered devices. Filters for IGD (InternetGatewayDevice) type devices by default, as those manage port forwarding. timeout is the time to wait for responses in milliseconds. ttl is the time-to-live; only touch this if you know what you're doing. See upnpresult for possible return values.

struct UPNP
@nogc nothrow
long
discover
(
in long timeout = 2000
,
in long ttl = 2
,
in String device_filter = gs!"InternetGatewayDevice"
)

Meta