Flatbuffer, Forwarder

- Flatbuffer now only sends data if priority registration was successful
- Forwarder no longer needs to worry about registering the priority
This commit is contained in:
Paulchen-Panther
2019-02-05 19:55:48 +01:00
parent 657fe00211
commit 5cc353468d
17 changed files with 51 additions and 33 deletions

View File

@@ -111,6 +111,12 @@ void FlatBufferClient::handleRegisterCommand(const hyperionnet::Register *regReq
{
_priority = regReq->priority();
_hyperion->registerInput(_priority, hyperion::COMP_FLATBUFSERVER, regReq->origin()->c_str()+_clientAddress);
auto reply = hyperionnet::CreateReplyDirect(_builder, nullptr, -1, (_priority ? _priority : -1));
_builder.Finish(reply);
// send reply
sendMessage();
}
void FlatBufferClient::handleImageCommand(const hyperionnet::Image *image)