com.aelitis.net.natpmp
Interface NatPMPDevice

All Known Implementing Classes:
NatPMPDeviceImpl

public interface NatPMPDevice


Method Summary
 int addPortMapping(boolean tcp, int internal_port, int external_port)
           
 boolean connect()
           
 void deletePortMapping(boolean tcp, int internal_port, int external_port)
           
 int getEpoch()
           
 String getExternalIPAddress()
           
 InetAddress getLocalAddress()
           
 NetworkInterface getNetworkInterface()
           
 

Method Detail

connect

boolean connect()
                throws Exception
Throws:
Exception

addPortMapping

int addPortMapping(boolean tcp,
                   int internal_port,
                   int external_port)
                   throws Exception
Throws:
Exception

deletePortMapping

void deletePortMapping(boolean tcp,
                       int internal_port,
                       int external_port)
                       throws Exception
Throws:
Exception

getLocalAddress

InetAddress getLocalAddress()

getNetworkInterface

NetworkInterface getNetworkInterface()

getEpoch

int getEpoch()

getExternalIPAddress

String getExternalIPAddress()