aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/rpc_command_executor.h
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2015-03-30 12:58:22 +0200
committerRiccardo Spagni <ric@spagni.net>2015-03-30 13:02:02 +0200
commitb0151de60144ddc1f56d253e7574bd6a9aefa28f (patch)
tree4e87da719ff11ccfa61798f3bd07d42574cc9c22 /src/daemon/rpc_command_executor.h
parentMerge pull request #247 (diff)
parentRestore daemon interactive mode (diff)
downloadmonero-b0151de60144ddc1f56d253e7574bd6a9aefa28f.tar.xz
Merge pull request #248
a0590d2 Restore daemon interactive mode (Thomas Winget)
Diffstat (limited to 'src/daemon/rpc_command_executor.h')
-rw-r--r--src/daemon/rpc_command_executor.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/daemon/rpc_command_executor.h b/src/daemon/rpc_command_executor.h
index f1dc9cc76..fe0181e62 100644
--- a/src/daemon/rpc_command_executor.h
+++ b/src/daemon/rpc_command_executor.h
@@ -43,18 +43,26 @@
#include "cryptonote_core/cryptonote_core.h"
#include "cryptonote_protocol/cryptonote_protocol_handler.h"
#include "p2p/net_node.h"
+#include "rpc/core_rpc_server.h"
namespace daemonize {
class t_rpc_command_executor final {
private:
- tools::t_rpc_client m_rpc_client;
+ tools::t_rpc_client* m_rpc_client;
+ cryptonote::core_rpc_server* m_rpc_server;
+ bool m_is_rpc;
+
public:
t_rpc_command_executor(
uint32_t ip
, uint16_t port
+ , bool is_rpc = true
+ , cryptonote::core_rpc_server* rpc_server = NULL
);
+ ~t_rpc_command_executor();
+
bool print_peer_list();
bool save_blockchain();