mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 17:41:45 +00:00
Update multi-part features (nanomsg) and various fixes
- Implement nanomsg multipart with MessagePack. - Use the MessagePack from FairSoft and handle not found case. - Update splitter, merger and proxy devices to handle multi-part. - Let FairMQParts.At() return pointer reference (can be used for moving). - Add missing const specifier in the message interface. - Add transmit kernel size setting to channels (ZMQ_SNDBUF). - Remove FairMQBuffer device. - Remove old multi-part methods from Tutorial3 example (to be replaced with Parts API). - Make callback mandatory for newMsg(data, size, callback). - Add missing <vector> include in FairMQSocket.
This commit is contained in:
committed by
Mohammad Al-Turany
parent
fb9b6086df
commit
6ab3b0ebc0
@@ -37,9 +37,9 @@ void FairMQExample8Sink::Run()
|
||||
if (Receive(parts, "data-in") >= 0)
|
||||
{
|
||||
Ex8Header header;
|
||||
header.stopFlag = (static_cast<Ex8Header*>(parts.At(0).GetData()))->stopFlag;
|
||||
header.stopFlag = (static_cast<Ex8Header*>(parts.At(0)->GetData()))->stopFlag;
|
||||
LOG(INFO) << "Received header with stopFlag: " << header.stopFlag;
|
||||
LOG(INFO) << "Received body of size: " << parts.At(1).GetSize();
|
||||
LOG(INFO) << "Received body of size: " << parts.At(1)->GetSize();
|
||||
if (header.stopFlag == 1)
|
||||
{
|
||||
LOG(INFO) << "Flag is 0, exiting Run()";
|
||||
|
Reference in New Issue
Block a user