Package zombie.core.znet
Class PortMapper
java.lang.Object
zombie.core.znet.PortMapper
public class PortMapper
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description PortMapper()
-
Method Summary
Modifier and Type Method Description static boolean
addMapping(int int1, int int2, java.lang.String string, java.lang.String string2, int int3)
static boolean
addMapping(int int1, int int2, java.lang.String string, java.lang.String string2, int int3, boolean boolean1)
static boolean
discover()
static void
fetchMappings()
static java.lang.String
getExternalAddress()
static java.lang.String
getExternalAddress(boolean boolean1)
static java.lang.String
getGatewayInfo()
static PortMappingEntry
getMapping(int int1)
static boolean
igdFound()
static int
numMappings()
static boolean
removeMapping(int int1, java.lang.String string)
static void
shutdown()
static void
startup()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
PortMapper
public PortMapper()
-
-
Method Details
-
startup
public static void startup() -
shutdown
public static void shutdown() -
discover
public static boolean discover() -
igdFound
public static boolean igdFound() -
addMapping
public static boolean addMapping(int int1, int int2, java.lang.String string, java.lang.String string2, int int3) -
addMapping
public static boolean addMapping(int int1, int int2, java.lang.String string, java.lang.String string2, int int3, boolean boolean1) -
removeMapping
public static boolean removeMapping(int int1, java.lang.String string) -
fetchMappings
public static void fetchMappings() -
numMappings
public static int numMappings() -
getMapping
-
getGatewayInfo
public static java.lang.String getGatewayInfo() -
getExternalAddress
public static java.lang.String getExternalAddress(boolean boolean1) -
getExternalAddress
public static java.lang.String getExternalAddress()
-