Permalink
Browse files

dealer and router socket types

  • Loading branch information...
1 parent 5442d91 commit e7464db9de0bd5cb89f38748cb51b73a9a254c74 @gar1t gar1t committed Jun 8, 2011
Showing with 8 additions and 2 deletions.
  1. +4 −2 include/erlzmq.hrl
  2. +4 −0 src/erlzmq.erl
View
@@ -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
@@ -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 e7464db

Please sign in to comment.