Package com.biglybt.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
-
-
Field Summary
Fields Modifier and Type Field Description static int
CAP_ALL
static int
CAP_UDP_TCP_SAME_PORT
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addListener(UPnPWANConnectionListener listener)
void
addPortMapping(boolean tcp, int port, java.lang.String description)
adda new port mapping from external port X to port X on local hostvoid
deletePortMapping(boolean tcp, int port)
int
getCapabilities()
java.lang.String
getConnectionType()
java.lang.String
getExternalIPAddress()
UPnPWANConnectionPortMapping[]
getPortMappings()
java.lang.String[]
getStatusInfo()
void
periodicallyRecheckMappings(boolean on)
void
removeListener(UPnPWANConnectionListener listener)
-
Methods inherited from interface com.biglybt.net.upnp.services.UPnPSpecificService
getGenericService
-
-
-
-
Field Detail
-
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
-
-
Method Detail
-
getConnectionType
java.lang.String getConnectionType()
-
addPortMapping
void addPortMapping(boolean tcp, int port, java.lang.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
java.lang.String[] getStatusInfo() throws UPnPException
- Throws:
UPnPException
-
periodicallyRecheckMappings
void periodicallyRecheckMappings(boolean on)
-
getCapabilities
int getCapabilities()
-
getExternalIPAddress
java.lang.String getExternalIPAddress() throws UPnPException
- Throws:
UPnPException
-
addListener
void addListener(UPnPWANConnectionListener listener)
-
removeListener
void removeListener(UPnPWANConnectionListener listener)
-
-