#include #include #include #include #include #include namespace Controller { struct statLog { long time; long lastSecond; long long down; long long up; }; class statStorage { public: void update(IPC::statExchange & data); std::string host; std::string streamName; std::string connector; std::map log; }; extern std::multimap oldConns; extern std::map curConns; void parseStatistics(char * data, size_t len, unsigned int id); void fillClients(JSON::Value & req, JSON::Value & rep); void fillTotals(JSON::Value & req, JSON::Value & rep); void SharedMemStats(void * config); bool hasViewers(std::string streamName); }