Electroneum
epee::net_utils::munin Namespace Reference

Classes

struct  fake_send_handler
 
class  munin_node_server_connection_handler
 
struct  munin_service
 
struct  munin_service_data_provider
 
struct  node_server_config
 

Typedefs

typedef boosted_tcp_server< munin_node_server_connection_handlermunin_node_server
 

Functions

bool test_self ()
 

Typedef Documentation

◆ munin_node_server

Function Documentation

◆ test_self()

bool epee::net_utils::munin::test_self ( )
inline

Definition at line 329 of file munin_connection_handler.h.

330  {
331  /*WSADATA w;
332  ::WSAStartup(MAKEWORD(1, 1), &w);
333  node_server_config sc;
334  sc.m_services.push_back(munin_service());
335  sc.m_services.back().m_service_name = "test_service";
336 
337  sc.m_services.back().m_service_config_string =
338  "graph_args --base 1000 -l 0 --vertical-label N --upper-limit 329342976\n"
339  "graph_title REPORTS STATICTICS\n"
340  "graph_category bind\n"
341  "graph_info This graph shows how many reports came in fixed time period.\n"
342  "graph_order apps free swap\n"
343  "apps.label apps\n"
344  "apps.draw AREA\n"
345  "apps.info Memory used by user-space applications.\n"
346  "swap.label swap\n"
347  "swap.draw STACK\n"
348  "swap.info Swap space used.\n"
349  "free.label unused\n"
350  "free.draw STACK\n"
351  "free.info Wasted memory. Memory that is not used for anything at all.\n"
352  "committed.label committed\n"
353  "committed.draw LINE2\n"
354  "committed.warn 625410048\n"
355  "committed.info The amount of memory that would be used if all the memory that's been allocated were to be used.\n";
356 
357 
358  sc.m_services.push_back(munin_service());
359  sc.m_services.back().m_service_name = "test_service1";
360  fake_send_handler fh;
361  munin_node_server_connection_handler mh(&fh, sc);
362 
363  std::string buff = "list\n";
364  mh.handle_recv(buff.data(), buff.size());
365 
366 
367  buff = "nodes\n";
368  mh.handle_recv(buff.data(), buff.size());
369 */
370  return true;
371  }