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()
           
 java.lang.String getExternalIPAddress()
           
 java.net.InetAddress getLocalAddress()
           
 java.net.NetworkInterface getNetworkInterface()
           
 

Method Detail

connect

boolean connect()
                throws java.lang.Exception
Throws:
java.lang.Exception

addPortMapping

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

deletePortMapping

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

getLocalAddress

java.net.InetAddress getLocalAddress()

getNetworkInterface

java.net.NetworkInterface getNetworkInterface()

getEpoch

int getEpoch()

getExternalIPAddress

java.lang.String getExternalIPAddress()