com.aelitis.net.upnp.services
Interface UPnPWANConnection
- All Superinterfaces:
- UPnPSpecificService
- All Known Subinterfaces:
- UPnPWANIPConnection, UPnPWANPPPConnection
- All Known Implementing Classes:
- NatPMPUPnPRootDeviceImpl.NatPMPUPnPWANConnection, UPnPSSWANConnectionImpl, UPnPSSWANIPConnectionImpl, UPnPSSWANPPPConnectionImpl
public interface UPnPWANConnection
- extends UPnPSpecificService
- Author:
- parg
CAP_UDP_TCP_SAME_PORT
static final int CAP_UDP_TCP_SAME_PORT
- See Also:
- Constant Field Values
CAP_ALL
static final int CAP_ALL
- See Also:
- Constant Field Values
getConnectionType
String getConnectionType()
addPortMapping
void addPortMapping(boolean tcp,
int port,
String description)
throws UPnPException
- adda new port mapping from external port X to port X on local host
- Parameters:
tcp
- port
- description
-
- Throws:
UPnPException
getPortMappings
UPnPWANConnectionPortMapping[] getPortMappings()
throws UPnPException
- Throws:
UPnPException
deletePortMapping
void deletePortMapping(boolean tcp,
int port)
throws UPnPException
- Throws:
UPnPException
getStatusInfo
String[] getStatusInfo()
throws UPnPException
- Throws:
UPnPException
periodicallyRecheckMappings
void periodicallyRecheckMappings(boolean on)
getCapabilities
int getCapabilities()
getExternalIPAddress
String getExternalIPAddress()
throws UPnPException
- Throws:
UPnPException
addListener
void addListener(UPnPWANConnectionListener listener)
removeListener
void removeListener(UPnPWANConnectionListener listener)