Class UPnPSSWANConnectionImpl
java.lang.Object
com.biglybt.net.upnp.impl.services.UPnPSSWANConnectionImpl
- All Implemented Interfaces:
UPnPSpecificService
,UPnPWANConnection
- Direct Known Subclasses:
UPnPSSWANIPConnectionImpl
,UPnPSSWANPPPConnectionImpl
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static AEMonitor
private boolean
private List
private List
private boolean
private UPnPServiceImpl
private static List
Fields inherited from interface com.biglybt.net.upnp.services.UPnPWANConnection
CAP_ALL, CAP_UDP_TCP_SAME_PORT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(UPnPWANConnectionListener listener) void
addPortMapping
(boolean tcp, int port, String description) adda new port mapping from external port X to port X on local hostprotected void
void
deletePortMapping
(boolean tcp, int port) int
String[]
protected void
void
periodicallyRecheckMappings
(boolean on) void
removeListener
(UPnPWANConnectionListener listener) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.biglybt.net.upnp.services.UPnPWANConnection
getConnectionType
-
Field Details
-
class_mon
-
services
-
service
-
mappings
-
listeners
-
recheck_mappings
private boolean recheck_mappings -
last_mapping_check_failed
private boolean last_mapping_check_failed
-
-
Constructor Details
-
UPnPSSWANConnectionImpl
-
-
Method Details
-
getCapabilities
public int getCapabilities()- Specified by:
getCapabilities
in interfaceUPnPWANConnection
-
getGenericService
- Specified by:
getGenericService
in interfaceUPnPSpecificService
-
getStatusInfo
- Specified by:
getStatusInfo
in interfaceUPnPWANConnection
- Throws:
UPnPException
-
periodicallyRecheckMappings
public void periodicallyRecheckMappings(boolean on) - Specified by:
periodicallyRecheckMappings
in interfaceUPnPWANConnection
-
checkMappings
- Throws:
UPnPException
-
addPortMapping
Description copied from interface:UPnPWANConnection
adda new port mapping from external port X to port X on local host- Specified by:
addPortMapping
in interfaceUPnPWANConnection
- Parameters:
tcp
-port
-description
-- Throws:
UPnPException
-
deletePortMapping
- Specified by:
deletePortMapping
in interfaceUPnPWANConnection
- Throws:
UPnPException
-
getPortMappings
- Specified by:
getPortMappings
in interfaceUPnPWANConnection
- Throws:
UPnPException
-
getExternalIPAddress
- Specified by:
getExternalIPAddress
in interfaceUPnPWANConnection
- Throws:
UPnPException
-
log
-
addListener
- Specified by:
addListener
in interfaceUPnPWANConnection
-
removeListener
- Specified by:
removeListener
in interfaceUPnPWANConnection
-