|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.cybergarage.upnp.ControlPoint
net.i2p.router.transport.UPnP
class UPnP
This (and all in org/freenet, org/cybergarage, org/xmlpull) grabbed from freenet SVN, mid-February 2009 by zzz. This file modded somewhat to remove freenet-specific stuff, but most of the glue to I2P is in UPnPManager (which was written from scratch and is not the Limewire one referred to below). ================== This plugin implements UP&P support on a Freenet node.
Constructor Summary | |
---|---|
UPnP(I2PAppContext context)
|
Method Summary | |
---|---|
void |
deviceAdded(Device dev)
DeviceChangeListener |
void |
deviceRemoved(Device dev)
DeviceChangeListener |
void |
eventNotifyReceived(String uuid,
long seq,
String varName,
String value)
EventListener callback - unused for now - how many devices support events? |
DetectedIP[] |
getAddress()
|
static void |
main(String[] args)
Dumps out device info in semi-HTML format |
void |
onChangePublicPorts(Set<ForwardPort> ports,
ForwardPortCallback cb)
Registers a callback when the given ports change. |
String |
renderStatusHTML()
warning - slow |
boolean |
runPlugin()
|
void |
terminate()
WARNING - Blocking up to 2 seconds |
void |
unregisterPortMappings()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UPnP(I2PAppContext context)
Method Detail |
---|
public boolean runPlugin()
public void terminate()
public DetectedIP[] getAddress()
public void deviceAdded(Device dev)
deviceAdded
in interface DeviceChangeListener
public void unregisterPortMappings()
public void deviceRemoved(Device dev)
deviceRemoved
in interface DeviceChangeListener
public void eventNotifyReceived(String uuid, long seq, String varName, String value)
eventNotifyReceived
in interface EventListener
public String renderStatusHTML()
public void onChangePublicPorts(Set<ForwardPort> ports, ForwardPortCallback cb)
ports
- non-nullcb
- in UPnPManagerpublic static void main(String[] args) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |