Changes between Version 2 and Version 3 of i2pcontrol


Ignore:
Timestamp:
Jan 25, 2016 2:14:07 PM (4 years ago)
Author:
tuna
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • i2pcontrol

    v2 v3  
    7171
    7272
    73  * '''stats.advanced''' - This method provides access to all stats kept within the instance.
    74    * '''''get''''' [string]:  Name of the advanced stat to be provided
    75    * ''Optional:'' '''''period''''' [number]:  The period for the requested stat
     73 * '''stats.''' - This group of methods provide access to all stats kept within the instance.
     74   * '''stats.advanced''' - This method provides access to all stats kept within the instance.
     75     * '''''get''''' [string]:  Name of the advanced stat to be provided
     76     * ''Optional:'' '''''period''''' [number]:  The period for the requested stat
     77   * '''stats.knownpeers''' - Returns the number of known peers
     78   * '''stats.uptime''' - Returns the time in ms since the router started
     79   * '''stats.bandwidth.in''' - Returns the inbound bandwidth (ideally for the last second)
     80   * '''stats.bandwidth.out''' - Returns the outbound bandwidth (ideally for the last second)'
     81   * '''stats.tunnels.participating''' - Returns the number of tunnels participated in currently
     82   * '''stats.netdb.peers.active''' - Returns the number of peers we've recently communicated with
     83   * '''stats.netdb.peers.fast''' - Returns the number of 'fast' peers
     84   * '''stats.netdb.peers.highcapacity''' - Returns the number of 'high capacity' peers
     85   * '''stats.netdb.peers.known''' - Returns the number of known peers
     86     * ''''' '''''' [nil]: No parameter is needed
    7687{{{
    7788[number]
     
    99110
    100111 * '''i2pcontrol.password''' - Change the i2pcontrol password.
    101    * '''''set''''' [string]: This parameter does not need to be set.
     112   * '''''set''''' [string]: Set the new password to this string
    102113{{{
    103114[nil]
     
    115126}}}
    116127
     128
     129
     130*i2p.router.status - Returns the number of known peers
     131*i2p.router.net.status – [long] What the current network status is. According to the below enum:
     132    0 – OK
     133    1 – TESTING
     134    2 – FIREWALLED
     135    3 – HIDDEN
     136    4 – WARN_FIREWALLED_AND_FAST
     137    5 – WARN_FIREWALLED_AND_FLOODFILL
     138    6 – WARN_FIREWALLED_WITH_INBOUND_TCP
     139    7 – WARN_FIREWALLED_WITH_UDP_DISABLED
     140    8 – ERROR_I2CP
     141    9 – ERROR_CLOCK_SKEW
     142    10 – ERROR_PRIVATE_TCP_ADDRESS
     143    11 – ERROR_SYMMETRIC_NAT
     144    12 – ERROR_UDP_PORT_IN_USE
     145    13 – ERROR_NO_ACTIVE_PEERS_CHECK_CONNECTION_AND_FIREWALL
     146    14 – ERROR_UDP_DISABLED_AND_TCP_UNSET
     147*i2p.router.netdb.isreseeding – [boolean] Is the router reseeding hosts to its NetDB?