Interface UPnPWANConnection
- All Superinterfaces:
UPnPSpecificService
- All Known Subinterfaces:
UPnPWANIPConnection, UPnPWANPPPConnection
- All Known Implementing Classes:
NatPMPUPnPRootDeviceImpl.NatPMPUPnPWANConnection, UPnPSSWANConnectionImpl, UPnPSSWANIPConnectionImpl, UPnPSSWANPPPConnectionImpl
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(UPnPWANConnectionListener listener) voidaddPortMapping(boolean is_tcp, int port, InetAddress internal_host, String description) adda new port mapping from external port X to port X on local hostvoiddeletePortMapping(boolean tcp, int port) intString[]voidperiodicallyRecheckMappings(boolean on) voidremoveListener(UPnPWANConnectionListener listener) Methods inherited from interface UPnPSpecificService
getGenericService
-
Field Details
-
CAP_UDP_TCP_SAME_PORT
static final int CAP_UDP_TCP_SAME_PORT- See Also:
-
CAP_ALL
static final int CAP_ALL- See Also:
-
-
Method Details
-
getConnectionType
String getConnectionType() -
addPortMapping
void addPortMapping(boolean is_tcp, int port, InetAddress internal_host, String description) throws UPnPException adda new port mapping from external port X to port X on local host- Parameters:
port-description-tcp-- Throws:
UPnPException
-
getPortMappings
- Throws:
UPnPException
-
deletePortMapping
- Throws:
UPnPException
-
getStatusInfo
- Throws:
UPnPException
-
periodicallyRecheckMappings
void periodicallyRecheckMappings(boolean on) -
getCapabilities
int getCapabilities() -
getExternalIPAddress
- Throws:
UPnPException
-
addListener
-
removeListener
-