net.i2p.router.transport
Class UPnPManager

java.lang.Object
  extended by net.i2p.router.transport.UPnPManager

 class UPnPManager
extends Object

Bridge from the I2P RouterAddress data structure to the freenet data structures

Since:
0.7.4
Author:
zzz

Constructor Summary
UPnPManager(RouterContext context, TransportManager manager)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UPnPManager

public UPnPManager(RouterContext context,
                   TransportManager manager)
Method Detail

start

public void start()
Blocking, may take a while


stop

public void stop()
Blocking, may take a while, up to 20 seconds


rescan

public void rescan()
Call when IP or network connectivity might have changed. Starts UPnP if previous start failed, else starts a search. Must have called start() first, and not called stop(). Should be fast. This only starts the search, the responses will come in over the MX time (3 seconds).

Since:
0.9.18

update

public 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.


renderStatusHTML

public String renderStatusHTML()
Warning - blocking, very slow, queries the active router, will take many seconds if it has vanished.