26 lines
606 B
C++
26 lines
606 B
C++
|
#include <std_include.hpp>
|
||
|
#include "../services.hpp"
|
||
|
|
||
|
namespace demonware
|
||
|
{
|
||
|
bdCounter::bdCounter() : service(23, "bdCounter")
|
||
|
{
|
||
|
this->register_task(1, &bdCounter::incrementCounters);
|
||
|
this->register_task(2, &bdCounter::getCounterTotals);
|
||
|
}
|
||
|
|
||
|
void bdCounter::incrementCounters(service_server* server, byte_buffer* /*buffer*/) const
|
||
|
{
|
||
|
// TODO:
|
||
|
auto reply = server->create_reply(this->task_id());
|
||
|
reply->send();
|
||
|
}
|
||
|
|
||
|
void bdCounter::getCounterTotals(service_server* server, byte_buffer* /*buffer*/) const
|
||
|
{
|
||
|
// TODO:
|
||
|
auto reply = server->create_reply(this->task_id());
|
||
|
reply->send();
|
||
|
}
|
||
|
}
|