#include <mist/shared_memory.h>
#include <mist/timing.h>
#include <mist/defines.h>
#include <mist/json.h>
#include <mist/tinythread.h>
#include <string>
#include <map>
Go to the source code of this file.
|
| Controller |
| Holds everything unique to the controller.
|
|
|
#define | STAT_CUTOFF 600 |
| The STAT_CUTOFF define sets how many seconds of statistics history is kept. More...
|
|
|
void | Controller::fillActive (JSON::Value &req, JSON::Value &rep, bool onlyNow=false) |
| This takes a "active_streams" request, and fills in the response data. More...
|
|
void | Controller::fillClients (JSON::Value &req, JSON::Value &rep) |
| This takes a "clients" request, and fills in the response data. More...
|
|
void | Controller::fillTotals (JSON::Value &req, JSON::Value &rep) |
| This takes a "totals" request, and fills in the response data. More...
|
|
bool | Controller::hasViewers (std::string streamName) |
| Returns true if this stream has at least one connected client. More...
|
|
void | Controller::killStatistics (char *data, size_t len, unsigned int id) |
| Forces a disconnect to all users. More...
|
|
void | Controller::parseStatistics (char *data, size_t len, unsigned int id) |
| This function is called by the shared memory page that holds statistics. More...
|
|
void | Controller::SharedMemStats (void *config) |
| This function runs as a thread and roughly once per second retrieves statistics from all connected clients, as well as wipes old statistics that have disconnected over 10 minutes ago. More...
|
|
The STAT_CUTOFF define sets how many seconds of statistics history is kept.