Holds everything unique to the controller.
Definition: controller_api.h:4
A JSON::Value is either a string or an integer, but may also be an object, array or null...
Definition: json.h:21
int handleAPIConnection(Socket::Connection &conn)
Handles a single incoming API connection.
Definition: controller_api.cpp:162
bool authorize(JSON::Value &Request, JSON::Value &Response, Socket::Connection &conn)
Checks an authorization request for a given user.
Definition: controller_api.cpp:120
void checkConfig(JSON::Value &in, JSON::Value &out)
Check the submitted configuration and handle things accordingly.
Definition: controller_api.cpp:63
This class is for easy communicating through sockets, either TCP or Unix.
Definition: socket.h:47