Browse files

Merge pull request #14 from gar1t/sockalias

dealer and router socket types
  • Loading branch information...
2 parents 5442d91 + e7464db commit 3aa9455787c9904dee9331ebe8e9644b52ec216d @yrashk yrashk committed Jun 11, 2011
Showing with 8 additions and 2 deletions.
  1. +4 −2 include/erlzmq.hrl
  2. +4 −0 src/erlzmq.erl
View
6 include/erlzmq.hrl
@@ -3,8 +3,10 @@
-define('ZMQ_SUB', 2).
-define('ZMQ_REQ', 3).
-define('ZMQ_REP', 4).
--define('ZMQ_XREQ', 5).
--define('ZMQ_XREP', 6).
+-define('ZMQ_DEALER', 5).
+-define('ZMQ_ROUTER', 6).
+-define('ZMQ_XREQ', ?'ZMQ_DEALER').
+-define('ZMQ_XREP', ?'ZMQ_ROUTER').
-define('ZMQ_PULL', 7).
-define('ZMQ_PUSH', 8).
-define('ZMQ_XPUB', 9).
View
4 src/erlzmq.erl
@@ -307,8 +307,12 @@ socket_type(req) ->
?'ZMQ_REQ';
socket_type(rep) ->
?'ZMQ_REP';
+socket_type(dealer) ->
+ ?'ZMQ_DEALER';
socket_type(xreq) ->
?'ZMQ_XREQ';
+socket_type(router) ->
+ ?'ZMQ_ROUTER';
socket_type(xrep) ->
?'ZMQ_XREP';
socket_type(pull) ->

0 comments on commit 3aa9455

Please sign in to comment.