Changed NetStatus to depend on an enum instead of actual string.

This commit is contained in:
dev
2011-07-26 13:56:20 +00:00
parent d281afc2ef
commit 9acd209ee6

View File

@ -100,7 +100,25 @@ Response:
<li>**i2p.router.net.bw.inbound.15s &ndash; [double] The 15 second average inbound bandwidth in Bps.</li>
<li>**i2p.router.net.bw.outbound.1s &ndash; [double] The 1 second average outbound bandwidth in Bps.</li>
<li>**i2p.router.net.bw.outbound.15s &ndash; [double] The 15 second average outbound bandwidth in Bps.</li>
<li>**i2p.router.net.status &ndash; [String] What the current netowrk status is.</li>
<li>**i2p.router.net.status &ndash; [long] What the current network status is. According to the below enum:
<ul>
<li>9 &ndash; OK</li>
<li>14 &ndash; TESTING</li>
<li>8 &ndash; FIREWALLED</li>
<li>13 &ndash; HIDDEN</li>
<li>6 &ndash; WARN_FIREWALLED_AND_FAST</li>
<li>5 &ndash; WARN_FIREWALLED_AND_FLOODFILL</li>
<li>4 &ndash; WARN_FIREWALLED_WITH_INBOUND_TCP</li>
<li>12 &ndash; WARN_FIREWALLED_WITH_UDP_DISABLED</li>
<li>0 &ndash; ERROR_I2CP</li>
<li>1 &ndash; ERROR_CLOCK_SKEW</li>
<li>2 &ndash; ERROR_PRIVATE_TCP_ADDRESS</li>
<li>3 &ndash; ERROR_SYMMETRIC_NAT</li>
<li>7 &ndash; ERROR_UDP_PORT_IN_USE</li>
<li>10 &ndash; ERROR_NO_ACTIVE_PEERS_CHECK_CONNECTION_AND_FIREWALL</li>
<li>11 &ndash; ERROR_UDP_DISABLED_AND_TCP_UNSET</li>
</ul>
</li>
<li>**i2p.router.net.tunnels.participating &ndash; [long] How many tunnels on the I2P net are we participating in.</li>
<li>**i2p.router.netdb.activepeers &ndash; [long] How many peers have we communicated with recently.</li>
<li>**i2p.router.netdb.fastpeers &ndasg; [long] How many peers are considered 'fast'.</li>