net.tomp2p.connection
Class NATUtils
java.lang.Object
net.tomp2p.connection.NATUtils
public class NATUtils
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NATUtils
public NATUtils()
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.