class UPnPManager extends Object
Constructor | Description |
---|---|
UPnPManager(RouterContext context,
TransportManager manager) |
Modifier and Type | Method | Description |
---|---|---|
String |
renderStatusHTML() |
Warning - blocking, very slow, queries the active router,
will take many seconds if it has vanished.
|
void |
rescan() |
Call when IP or network connectivity might have changed.
|
void |
start() |
Blocking, may take a while.
|
void |
stop() |
Blocking, may take a while, up to 20 seconds
|
void |
update(Set<TransportManager.Port> ports) |
Call when the ports might have changed
The transports can call this pretty quickly at startup,
which can have multiple UPnP threads running at once, but
that should be ok.
|
public UPnPManager(RouterContext context, TransportManager manager)
public void start()
public void stop()
public void rescan()
public void update(Set<TransportManager.Port> ports)
public String renderStatusHTML()