|
||||||||||
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
public 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)
|
void |
deviceRemoved(Device dev)
|
void |
eventNotifyReceived(String uuid,
long seq,
String varName,
String value)
event callback - unused for now - how many devices support events? |
DetectedIP[] |
getAddress()
|
int |
getDownstreamMaxBitRate()
|
String |
getNATAddress()
|
int |
getUpstreamMaxBitRate()
|
boolean |
isNATPresent()
|
static void |
main(String[] args)
|
void |
onChangePublicPorts(Set<ForwardPort> ports,
ForwardPortCallback cb)
non-blocking |
String |
renderStatusHTML()
warning - slow |
boolean |
runPlugin()
|
void |
terminate()
|
boolean |
tryAddMapping(String protocol,
int port,
String description,
ForwardPort fp)
|
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 boolean tryAddMapping(String protocol, int port, String description, ForwardPort fp)
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 boolean isNATPresent()
public String getNATAddress()
public int getUpstreamMaxBitRate()
public int getDownstreamMaxBitRate()
public String renderStatusHTML()
public void onChangePublicPorts(Set<ForwardPort> ports, ForwardPortCallback cb)
public static void main(String[] args) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |