Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (13 sloc) 350 Bytes
#pragma once
#include <string>
#include "stats_common.h"
// serves over unix socket
class stats_server {
public:
stats_server(const std::string &sockfile);
void serve_forever(); // blocks current thread
private:
bool handle_cmd_get_counter_value(const std::string &name, packet &pkt);
void serve_client(int fd);
std::string sockfile_;
};