// system includes #include // project includes #include #include "JsonClientConnection.h" JsonServer::JsonServer(uint16_t port) : QObject(), _hyperion(Hyperion::getInstance()), _server(), _openConnections(), _log(Logger::getInstance("JSONSERVER")) { if (!_server.listen(QHostAddress::Any, port)) { throw std::runtime_error("JSONSERVER ERROR: could not bind to port"); } QList list = _hyperion->getForwarder()->getJsonSlaves(); for ( int i=0; ideleteLater(); }