aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/command_server.h
diff options
context:
space:
mode:
authorThomas Winget <tewinget@gmail.com>2015-03-27 08:01:30 -0400
committerThomas Winget <tewinget@gmail.com>2015-03-27 08:01:30 -0400
commita0590d29cd9949c65a4cd67630a84410a30d33fe (patch)
tree4e87da719ff11ccfa61798f3bd07d42574cc9c22 /src/daemon/command_server.h
parentMerge pull request #247 (diff)
downloadmonero-a0590d29cd9949c65a4cd67630a84410a30d33fe.tar.xz
Restore daemon interactive mode
Daemon interactive mode is now working again. RPC mapped calls in daemon and wallet have both had connection_context removed as an argument as that argument was not being used anywhere.
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);