add flag for non-blocking operations

This commit is contained in:
Alexey Rybalchenko 2014-10-21 17:20:29 +02:00
parent 6968f57abc
commit 101bc4c9e7
2 changed files with 4 additions and 0 deletions

View File

@ -219,6 +219,8 @@ int FairMQSocketNN::GetConstant(const string& constant)
if (constant == "linger") if (constant == "linger")
return NN_LINGER; return NN_LINGER;
if (constant == "no-block")
return NN_DONTWAIT;
return -1; return -1;
} }

View File

@ -246,6 +246,8 @@ int FairMQSocketZMQ::GetConstant(const string& constant)
if (constant == "linger") if (constant == "linger")
return ZMQ_LINGER; return ZMQ_LINGER;
if (constant == "no-block")
return ZMQ_DONTWAIT;
return -1; return -1;
} }