mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
FairMQRegion and examples/advanced/Region
This commit is contained in:
committed by
Mohammad Al-Turany
parent
65f1b96dc3
commit
221d2567f0
@@ -127,7 +127,14 @@ int FairMQSocketNN::Send(FairMQMessagePtr& msg, const int flags)
|
||||
while (true)
|
||||
{
|
||||
void* ptr = msg->GetMessage();
|
||||
nbytes = nn_send(fSocket, &ptr, NN_MSG, flags);
|
||||
if (static_cast<FairMQMessageNN*>(msg.get())->fRegion == false)
|
||||
{
|
||||
nbytes = nn_send(fSocket, &ptr, NN_MSG, flags);
|
||||
}
|
||||
else
|
||||
{
|
||||
nbytes = nn_send(fSocket, ptr, msg->GetSize(), flags);
|
||||
}
|
||||
if (nbytes >= 0)
|
||||
{
|
||||
fBytesTx += nbytes;
|
||||
|
Reference in New Issue
Block a user