Electroneum
Public Member Functions | Private Member Functions | Private Attributes | List of all members
daemonize::t_command_server Class Reference

#include <command_server.h>

Collaboration diagram for daemonize::t_command_server:
Collaboration graph
[legend]

Public Member Functions

 t_command_server (uint32_t ip, uint16_t port, const boost::optional< tools::login > &login, const epee::net_utils::ssl_options_t &ssl_options, 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 (std::function< void(void)> exit_handler=NULL)
 
void stop_handling ()
 

Private Member Functions

bool help (const std::vector< std::string > &args)
 
std::string get_commands_str ()
 
std::string get_command_usage (const std::vector< std::string > &args)
 

Private Attributes

t_command_parser_executor m_parser
 
epee::console_handlers_binder m_command_lookup
 
bool m_is_rpc
 

Constructor & Destructor Documentation

◆ t_command_server()

daemonize::t_command_server::t_command_server ( uint32_t  ip,
uint16_t  port,
const boost::optional< tools::login > &  login,
const epee::net_utils::ssl_options_t &  ssl_options,
bool  is_rpc = true,
cryptonote::core_rpc_server rpc_server = NULL 
)

Member Function Documentation

◆ get_command_usage()

std::string daemonize::t_command_server::get_command_usage ( const std::vector< std::string > &  args)
private

◆ get_commands_str()

std::string daemonize::t_command_server::get_commands_str ( )
private

◆ help()

bool daemonize::t_command_server::help ( const std::vector< std::string > &  args)
private

◆ process_command_str()

bool daemonize::t_command_server::process_command_str ( const std::string &  cmd)

◆ process_command_vec()

bool daemonize::t_command_server::process_command_vec ( const std::vector< std::string > &  cmd)

◆ start_handling()

bool daemonize::t_command_server::start_handling ( std::function< void(void)>  exit_handler = NULL)

◆ stop_handling()

void daemonize::t_command_server::stop_handling ( )

Member Data Documentation

◆ m_command_lookup

epee::console_handlers_binder daemonize::t_command_server::m_command_lookup
private

◆ m_is_rpc

bool daemonize::t_command_server::m_is_rpc
private

◆ m_parser

t_command_parser_executor daemonize::t_command_server::m_parser
private

The documentation for this class was generated from the following files: