Skip to content

Commit

Permalink
dealer and router socket types
Browse files Browse the repository at this point in the history
  • Loading branch information
Garrett Smith committed Jun 11, 2011
1 parent 5442d91 commit e7464db
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 4 additions & 2 deletions include/erlzmq.hrl
Expand Up @@ -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).
Expand Down
4 changes: 4 additions & 0 deletions src/erlzmq.erl
Expand Up @@ -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) ->
Expand Down

0 comments on commit e7464db

Please sign in to comment.