5 #ifndef JSONRPC_CPP_STUB_FARM_H_ 6 #define JSONRPC_CPP_STUB_FARM_H_ 8 #include <jsonrpccpp/client.h> 10 class Farm :
public jsonrpc::Client
13 Farm(jsonrpc::IClientConnector &conn, jsonrpc::clientVersion_t
type = jsonrpc::JSONRPC_CLIENT_V2) :
jsonrpc::Client(conn,
type) {}
19 Json::Value result = this->CallMethod(
"eth_getWork",p);
23 throw jsonrpc::JsonRpcException(jsonrpc::Errors::ERROR_CLIENT_INVALID_RESPONSE, result.toStyledString());
25 bool eth_submitWork(
const std::string& param1,
const std::string& param2,
const std::string& param3)
throw (jsonrpc::JsonRpcException)
31 Json::Value result = this->CallMethod(
"eth_submitWork",p);
33 return result.asBool();
35 throw jsonrpc::JsonRpcException(jsonrpc::Errors::ERROR_CLIENT_INVALID_RESPONSE, result.toStyledString());
39 #endif //JSONRPC_CPP_STUB_FARM_H_
This file is generated by jsonrpcstub, DO NOT CHANGE IT MANUALLY!
Json::Value eth_getWork()
Farm(jsonrpc::IClientConnector &conn, jsonrpc::clientVersion_t type=jsonrpc::JSONRPC_CLIENT_V2)
PlatformStyle::TableColorType type
bool eth_submitWork(const std::string ¶m1, const std::string ¶m2, const std::string ¶m3)