Skip to content

Commit

Permalink
Merge pull request zeromq#14 from gar1t/sockalias
Browse files Browse the repository at this point in the history
dealer and router socket types
  • Loading branch information
yrashk committed Jun 12, 2011
2 parents 5442d91 + e7464db commit 3aa9455
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 3aa9455

Please sign in to comment.