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 AEMonitorprivate booleanprivate List<UPnPWANConnectionListener> private List<UPnPSSWANConnectionImpl.PortMapping> private booleanprivate UPnPServiceImplprivate static List<UPnPSSWANConnectionImpl> Fields inherited from interface UPnPWANConnection
CAP_ALL, CAP_UDP_TCP_SAME_PORT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(UPnPWANConnectionListener listener) voidaddPortMapping(boolean tcp, int port, InetAddress internal_host, String description) adda new port mapping from external port X to port X on local hostprotected voidprivate voidvoiddeletePortMapping(boolean tcp, int port) intString[]protected voidvoidperiodicallyRecheckMappings(boolean on) voidremoveListener(UPnPWANConnectionListener listener) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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:
getCapabilitiesin interfaceUPnPWANConnection
-
getGenericService
- Specified by:
getGenericServicein interfaceUPnPSpecificService
-
getStatusInfo
- Specified by:
getStatusInfoin interfaceUPnPWANConnection- Throws:
UPnPException
-
periodicallyRecheckMappings
public void periodicallyRecheckMappings(boolean on) - Specified by:
periodicallyRecheckMappingsin interfaceUPnPWANConnection
-
checkMappings
- Throws:
UPnPException
-
checkRegistered
private void checkRegistered() -
addPortMapping
public void addPortMapping(boolean tcp, int port, InetAddress internal_host, String description) throws UPnPException Description copied from interface:UPnPWANConnectionadda new port mapping from external port X to port X on local host- Specified by:
addPortMappingin interfaceUPnPWANConnection- Parameters:
port-description-- Throws:
UPnPException
-
deletePortMapping
- Specified by:
deletePortMappingin interfaceUPnPWANConnection- Throws:
UPnPException
-
getPortMappings
- Specified by:
getPortMappingsin interfaceUPnPWANConnection- Throws:
UPnPException
-
getExternalIPAddress
- Specified by:
getExternalIPAddressin interfaceUPnPWANConnection- Throws:
UPnPException
-
log
-
addListener
- Specified by:
addListenerin interfaceUPnPWANConnection
-
removeListener
- Specified by:
removeListenerin interfaceUPnPWANConnection
-