CupIvan 82de42c68a tool for show broken public peers | há 6 anos atrás | |
---|---|---|
.. | ||
Bencode.php | há 10 anos atrás | |
Cjdns.php | há 6 anos atrás | |
README.md | há 8 anos atrás | |
base32.php | há 6 anos atrás | |
getActivePublicPeers | há 6 anos atrás | |
getBrokenPeers | há 6 anos atrás | |
index.php | há 11 anos atrás | |
peerStats | há 6 anos atrás | |
pingPublicPeers | há 6 anos atrás | |
publicKey2ipv6.php | há 6 anos atrás | |
sendGraph | há 6 anos atrás |
A simple PHP API for the cjdns admin interface.
<?php
// Include the two files
require "Bencode.php";
require "Cjdns.php";
// Make a new Cjdns object. The only required argument is the password, but it also accepts the IP and the port
$cjdns = new Cjdns("password", "127.0.0.1", 11234);
// Print a list of available functions and their arguments
print_r($cjdns->functions);
// Call one of them:
$ping = $cjdns->call("RouterModule_pingNode",array("path"=>"fc72:6c3b:8c74:68a7:d8c3:b4e0:6cbd:9588"));
// Display the result:
print_r($ping);
?>
Please report any bugs you find to derp. IRC is fine, as is github.