mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
- prepare general way to send (proto) messages. currently only incomming protomessages are forwarded
- begin impl. of json server Former-commit-id: 8f9237cd57ada1e84dc05e60b9ad723e47fd57b1
This commit is contained in:
@@ -369,18 +369,7 @@ int main(int argc, char** argv)
|
||||
if (config.isMember("protoServer"))
|
||||
{
|
||||
const Json::Value & protoServerConfig = config["protoServer"];
|
||||
QStringList forwardClientList;
|
||||
|
||||
if ( ! protoServerConfig["forward"].isNull() && protoServerConfig["forward"].isArray() )
|
||||
{
|
||||
for (const Json::Value& client : protoServerConfig["forward"])
|
||||
{
|
||||
forwardClientList << client.asString().c_str();
|
||||
std::cout << client.asString() << std::endl;
|
||||
}
|
||||
}
|
||||
|
||||
protoServer = new ProtoServer(&hyperion, protoServerConfig["port"].asUInt(), &forwardClientList );
|
||||
protoServer = new ProtoServer(&hyperion, protoServerConfig["port"].asUInt() );
|
||||
std::cout << "Proto server created and started on port " << protoServer->getPort() << std::endl;
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user