Fix compatibility with ZeroMQ 4.2.1

This commit is contained in:
Alexey Rybalchenko 2017-02-09 09:15:06 +01:00 committed by Mohammad Al-Turany
parent 617042b3c6
commit 65c19f07bf

View File

@ -320,8 +320,14 @@ bool FairMQDevice::AttachChannel(FairMQChannel& ch)
ch.fSocket->SetOption("rcv-hwm", &(ch.fRcvBufSize), sizeof(ch.fRcvBufSize));
// set kernel transmit size
ch.fSocket->SetOption("snd-size", &(ch.fSndKernelSize), sizeof(ch.fSndKernelSize));
ch.fSocket->SetOption("rcv-size", &(ch.fRcvKernelSize), sizeof(ch.fRcvKernelSize));
if (ch.fSndKernelSize != 0)
{
ch.fSocket->SetOption("snd-size", &(ch.fSndKernelSize), sizeof(ch.fSndKernelSize));
}
if (ch.fRcvKernelSize != 0)
{
ch.fSocket->SetOption("rcv-size", &(ch.fRcvKernelSize), sizeof(ch.fRcvKernelSize));
}
// attach
bool bind = (ch.fMethod == "bind");