add ROUTER/DEALER/PAIR sockets.

This commit is contained in:
Alexey Rybalchenko
2014-10-15 11:24:41 +02:00
parent 9317f06c10
commit 6968f57abc
3 changed files with 35 additions and 4 deletions

View File

@@ -228,6 +228,13 @@ int FairMQSocketZMQ::GetConstant(const string& constant)
return ZMQ_REQ;
if (constant == "rep")
return ZMQ_REP;
if (constant == "dealer")
return ZMQ_DEALER;
if (constant == "router")
return ZMQ_ROUTER;
if (constant == "pair")
return ZMQ_PAIR;
if (constant == "snd-hwm")
return ZMQ_SNDHWM;
if (constant == "rcv-hwm")
@@ -236,6 +243,7 @@ int FairMQSocketZMQ::GetConstant(const string& constant)
return ZMQ_SNDMORE;
if (constant == "rcv-more")
return ZMQ_RCVMORE;
if (constant == "linger")
return ZMQ_LINGER;