mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
Tests for MQ examples
This commit is contained in:
@@ -27,11 +27,15 @@ bool FairMQExample8Sink::HandleData(FairMQParts& parts, int /*index*/)
|
||||
{
|
||||
Ex8Header header;
|
||||
header.stopFlag = (static_cast<Ex8Header*>(parts.At(0)->GetData()))->stopFlag;
|
||||
|
||||
LOG(INFO) << "Received message with " << parts.Size() << " parts";
|
||||
|
||||
LOG(INFO) << "Received header with stopFlag: " << header.stopFlag;
|
||||
LOG(INFO) << "Received body of size: " << parts.At(1)->GetSize();
|
||||
|
||||
if (header.stopFlag == 1)
|
||||
{
|
||||
LOG(INFO) << "stopFlag is 0, going IDLE";
|
||||
LOG(INFO) << "stopFlag is 1, going IDLE";
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user