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

Field Summary
static int CAP_ALL
           
static int CAP_UDP_TCP_SAME_PORT
           
 
Method Summary
 void addListener(UPnPWANConnectionListener listener)
           
 void addPortMapping(boolean tcp, int port, String description)
          adda new port mapping from external port X to port X on local host
 void deletePortMapping(boolean tcp, int port)
           
 int getCapabilities()
           
 String getConnectionType()
           
 String getExternalIPAddress()
           
 UPnPWANConnectionPortMapping[] getPortMappings()
           
 String[] getStatusInfo()
           
 void periodicallyRecheckMappings(boolean on)
           
 void removeListener(UPnPWANConnectionListener listener)
           
 
Methods inherited from interface com.aelitis.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

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)