Package net.i2p.router.web.helpers
Class ConfigNetHelper
java.lang.Object
net.i2p.router.web.HelperBase
net.i2p.router.web.helpers.ConfigNetHelper
public class ConfigNetHelper extends HelperBase
Used for both /config and /confignet
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_SHARE_KBPS
(package private) static String
PROP_I2NP_NTCP_AUTO_IP
(package private) static String
PROP_I2NP_NTCP_AUTO_PORT
(package private) static String
PROP_I2NP_NTCP_HOSTNAME
copied from various private components(package private) static String
PROP_I2NP_NTCP_PORT
Fields inherited from class net.i2p.router.web.HelperBase
_context, _out, CHECKED, PROP_ADVANCED, SELECTED
-
Constructor Summary
Constructors Constructor Description ConfigNetHelper()
-
Method Summary
Methods inherited from class net.i2p.router.web.HelperBase
_t, _t, _t, _x, getChecked, isAdvanced, ngettext, setContextId, storeWriter
-
Field Details
-
PROP_I2NP_NTCP_HOSTNAME
copied from various private components- See Also:
- Constant Field Values
-
PROP_I2NP_NTCP_PORT
- See Also:
- Constant Field Values
-
PROP_I2NP_NTCP_AUTO_PORT
- See Also:
- Constant Field Values
-
PROP_I2NP_NTCP_AUTO_IP
- See Also:
- Constant Field Values
-
DEFAULT_SHARE_KBPS
public static final int DEFAULT_SHARE_KBPS- See Also:
- Constant Field Values
-
-
Constructor Details
-
ConfigNetHelper
public ConfigNetHelper()
-
-
Method Details
-
getUdphostname
-
getNtcphostname
-
getNtcpport
-
getUdpIP
- Returns:
- host or "unknown"
-
getUdpPort
To reduce confusion caused by NATs, this is the current internal SSU port, not the external port. -
getConfiguredUdpPort
This should always be the actual internal SSU port, as UDPTransport udpates the config when it changes. -
getDynamicKeysChecked
-
getLaptopChecked
-
getIPv4FirewalledChecked
- Since:
- 0.9.20
-
getIPv6FirewalledChecked
- Since:
- 0.9.28
-
getTcpAutoPortChecked
-
getTcpAutoIPChecked
-
getUdpAutoIPChecked
-
getUpnpChecked
default true -
getUdpDisabledChecked
default false, inverse of default true property- Since:
- 0.8.13
-
getUdpEnabledChecked
default true- Since:
- 0.9.35
-
getRequireIntroductionsChecked
Deprecated.unused, to be fixed if neededThis isn't updated for the new statuses, but it's commented out in the jsp. -
getIPv6Checked
Combined SSU/NTCP Use SSU setting, then NTCP setting, then default- Since:
- IPv6
-
getAddresses
-
getAddressSelector
- Since:
- IPv6
-
getInboundRate
- Returns:
- decimal
-
getOutboundRate
- Returns:
- decimal
-
getInboundBurstRateBits
- Returns:
- decimal
-
getOutboundBurstRateBits
- Returns:
- decimal
-
getShareRateBits
- Returns:
- decimal
-
getInboundBurstRate
- Returns:
- decimal
-
getOutboundBurstRate
- Returns:
- decimal
-
getSharePercentageBox
-
getShareBandwidth
public int getShareBandwidth()- Returns:
- in binary KBytes per second
-