net.tomp2p.connection
Class NATUtils

java.lang.Object
  extended by net.tomp2p.connection.NATUtils

public class NATUtils
extends Object


Constructor Summary
NATUtils()
           
 
Method Summary
 boolean isShutdownHookEnabled()
           
 boolean mapPMP(int internalPortUDP, int internalPortTCP, int externalPortUDP, int externalPortTCP)
           
 void mapUPNP(String internalHost, int internalPortUDP, int internalPortTCP, int externalPortUDP, int externalPortTCP)
           
 void setShutdownHookEnabled(boolean enabled)
           
 void shutdown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NATUtils

public NATUtils()
Method Detail

mapPMP

public boolean mapPMP(int internalPortUDP,
                      int internalPortTCP,
                      int externalPortUDP,
                      int externalPortTCP)
               throws NatPmpException
Throws:
NatPmpException

mapUPNP

public void mapUPNP(String internalHost,
                    int internalPortUDP,
                    int internalPortTCP,
                    int externalPortUDP,
                    int externalPortTCP)
             throws IOException
Throws:
IOException

setShutdownHookEnabled

public final void setShutdownHookEnabled(boolean enabled)

shutdown

public void shutdown()

isShutdownHookEnabled

public final boolean isShutdownHookEnabled()


Copyright © 2011. All Rights Reserved.