1 #include <jsonrpccpp/common/exception.h> 50 ret[
"id"] = i.
id.
hex();
51 ret[
"enode"] = i.
enode();
60 ret[
"ports"] = Json::objectValue;
62 ret[
"ports"][
"discovery"] = i.
port;
63 ret[
"ports"][
"listener"] = i.
port;
66 ret[
"id"] = i.
id.
hex();
67 ret[
"enode"] = i.
enode();
68 ret[
"protocols"] = Json::objectValue;
69 ret[
"protocols"][
"eth"] = Json::objectValue;
Adapted from code found on http://stackoverflow.com/questions/180947/base64-decode-snippet-in-c Origi...
virtual bool admin_net_stop(std::string const &_session) override
virtual bool admin_net_start(std::string const &_session) override
virtual Json::Value admin_net_peers(std::string const &_session) override
std::hash for asio::adress
std::string toString(string32 const &_s)
Make normal string from fixed-length string.
virtual bool admin_addPeer(std::string const &_node) override
std::string enode() const
virtual Json::Value admin_peers() override
virtual bool admin_net_connect(std::string const &_node, std::string const &_session) override
virtual Json::Value admin_net_nodeInfo(std::string const &_session) override
virtual Json::Value admin_nodeInfo() override
Json::Value toJson(unordered_map< u256, u256 > const &_storage)
virtual void startNetwork()=0
Start the network subsystem.
virtual void stopNetwork()=0
Stop the network subsystem.
virtual std::vector< p2p::PeerSessionInfo > peers()=0
Get information on the current peer set.
virtual void addPeer(p2p::NodeSpec const &_node, p2p::PeerType _t)=0
Generalised peer addition.
virtual p2p::NodeInfo nodeInfo() const =0
Get information concerning this node.