Add example for sending multipart messages

This commit is contained in:
Alexey Rybalchenko
2015-11-06 13:20:11 +01:00
parent 2e789e4439
commit 307d698736
18 changed files with 545 additions and 12 deletions

View File

@@ -27,7 +27,7 @@ void FairMQExample1Sink::Run()
{
unique_ptr<FairMQMessage> msg(fTransportFactory->CreateMessage());
if (fChannels.at("data-in").at(0).Receive(msg) > 0)
if (fChannels.at("data-in").at(0).Receive(msg) >= 0)
{
LOG(INFO) << "Received message: \""
<< string(static_cast<char*>(msg->GetData()), msg->GetSize())