Class PortMapper
java.lang.Object
zombie.core.znet.PortMapper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
addMapping
(int wanPort, int lanPort, String description, String proto, int leaseTime) static boolean
addMapping
(int wanPort, int lanPort, String description, String proto, int leaseTime, boolean force) static boolean
discover()
static void
static String
static String
getExternalAddress
(boolean forceUpdate) static String
static PortMappingEntry
getMapping
(int index) static boolean
igdFound()
static int
static boolean
removeMapping
(int wanPort, String proto) static void
shutdown()
static void
startup()
-
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
-
addMapping
-
removeMapping
-
fetchMappings
public static void fetchMappings() -
numMappings
public static int numMappings() -
getMapping
-
getGatewayInfo
-
getExternalAddress
-
getExternalAddress
-