| Package | Description |
|---|---|
| net.tomp2p.connection | |
| net.tomp2p.upnp |
| Modifier and Type | Method and Description |
|---|---|
void |
ConnectionHandler.mapUPNP(InetAddress internalAddress,
int internalPortUDP,
int internalPortTCP,
InetAddress externalAddress,
int externalPortUDP,
int externalPortTCP)
Adds a port forearding policy to UPNP enabled devices.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
InternetGatewayDevice.addPortMapping(String description,
String protocol,
String remoteHost,
int externalPort,
String internalClient,
int internalPort,
int leaseDuration)
Configures a nat entry on the UPNP device.
|
boolean |
InternetGatewayDevice.deletePortMapping(String remoteHost,
int externalPort,
String protocol)
Deletes a port mapping on the IDG device
|
String |
InternetGatewayDevice.getExternalIPAddress()
Retrieves the external IP address
|
ActionResponse |
InternetGatewayDevice.getGenericPortMappingEntry(int newPortMappingIndex)
Retrieves a generic port mapping entry.
|
Integer |
InternetGatewayDevice.getNatMappingsCount()
Retrieves the current number of mapping in the NAT table
|
Integer |
InternetGatewayDevice.getNatTableSize()
Computes the total entries in available in the nat table size, not that
this method is not guaranteed to work with all upnp devices since it is
not an generic IGD command
|
ActionResponse |
InternetGatewayDevice.getSpecificPortMappingEntry(String remoteHost,
int externalPort,
String protocol)
Retrieves information about a specific port mapping
|
String |
StateVariable.getValue()
Call to the UPNP device to retrieve the state variable actual
value
|
StateVariableResponse |
StateVariableMessage.service()
Executes the state variable query and returns the UPNP device
response, according to the UPNP specs, this method could take up
to 30 secs to process ( time allowed for a device to respond to
a request )
|
ActionResponse |
ActionMessage.service()
Executes the message and retuns the UPNP device response,
according to the UPNP specs, this method could take up to 30
secs to process ( time allowed for a device to respond to a
request )
|
Copyright © 2011. All Rights Reserved.