#include <munin_connection_handler.h>
Definition at line 99 of file munin_connection_handler.h.
◆ config_type
◆ connection_context
◆ munin_node_server_connection_handler()
Definition at line 105 of file munin_connection_handler.h.
106 m_machine_state(http_state_retriving_comand_line),
i_service_endpoint * m_psnd_hndlr
◆ ~munin_node_server_connection_handler()
| virtual epee::net_utils::munin::munin_node_server_connection_handler::~munin_node_server_connection_handler |
( |
| ) |
|
|
inlinevirtual |
◆ after_init_connection()
| bool epee::net_utils::munin::munin_node_server_connection_handler::after_init_connection |
( |
| ) |
|
|
inline |
◆ handle_qued_callback()
| void epee::net_utils::munin::munin_node_server_connection_handler::handle_qued_callback |
( |
| ) |
|
|
inline |
◆ handle_recv()
| virtual bool epee::net_utils::munin::munin_node_server_connection_handler::handle_recv |
( |
const void * |
ptr, |
|
|
size_t |
cb |
|
) |
| |
|
inlinevirtual |
Definition at line 143 of file munin_connection_handler.h.
146 const char* pbuff = (
const char*)ptr;
148 LOG_PRINT(
"munin_recv: \n" << recvd_buff, LOG_LEVEL_3);
150 m_cache += recvd_buff;
152 bool stop_handling =
false;
153 while(!stop_handling)
155 switch(m_machine_state)
157 case http_state_retriving_comand_line:
160 std::string::size_type fpos = m_cache.find(
'\n');
161 if(std::string::npos != fpos )
163 bool res = handle_command(m_cache);
166 m_cache.erase(0, fpos+1);
169 stop_handling =
true;
172 case http_state_error:
173 stop_handling =
true;
176 LOG_ERROR(
"Error in munin state machine! Unknown state=" << m_machine_state);
177 stop_handling =
true;
178 m_machine_state = http_state_error;
◆ release_protocol()
| bool epee::net_utils::munin::munin_node_server_connection_handler::release_protocol |
( |
| ) |
|
|
inline |
◆ thread_deinit()
| virtual bool epee::net_utils::munin::munin_node_server_connection_handler::thread_deinit |
( |
| ) |
|
|
inlinevirtual |
◆ thread_init()
| virtual bool epee::net_utils::munin::munin_node_server_connection_handler::thread_init |
( |
| ) |
|
|
inlinevirtual |
◆ m_psnd_hndlr
| i_service_endpoint* epee::net_utils::munin::munin_node_server_connection_handler::m_psnd_hndlr |
|
protected |
The documentation for this class was generated from the following file: