Class PortMapper
java.lang.Object
zombie.core.znet.PortMapper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanaddMapping(int wanPort, int lanPort, String description, String proto, int leaseTime) static booleanaddMapping(int wanPort, int lanPort, String description, String proto, int leaseTime, boolean force) static booleandiscover()static voidstatic Stringstatic StringgetExternalAddress(boolean forceUpdate) static Stringstatic PortMappingEntrygetMapping(int index) static booleanigdFound()static intstatic booleanremoveMapping(int wanPort, String proto) static voidshutdown()static voidstartup()
-
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
-