aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/command_server.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/command_server.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/command_server.h')
-rw-r--r--src/daemon/command_server.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/daemon/command_server.h b/src/daemon/command_server.h
index ab2d33a3a..494f44d8b 100644
--- a/src/daemon/command_server.h
+++ b/src/daemon/command_server.h
@@ -47,17 +47,25 @@ namespace daemonize {
class t_command_server {
private:
t_command_parser_executor m_parser;
- epee::command_handler m_command_lookup;
+ epee::console_handlers_binder m_command_lookup;
+ bool m_is_rpc;
+
public:
t_command_server(
uint32_t ip
, uint16_t port
+ , bool is_rpc = true
+ , cryptonote::core_rpc_server* rpc_server = NULL
);
bool process_command_str(const std::string& cmd);
bool process_command_vec(const std::vector<std::string>& cmd);
+ bool start_handling();
+
+ void stop_handling();
+
private:
bool help(const std::vector<std::string>& args);