Permalink
Browse files

handle push & pull

  • Loading branch information...
1 parent 948dddf commit 1d1527ef2a53f1d0de2618028d63dc689549f51b @benoitc benoitc committed Jan 12, 2011
Showing with 4 additions and 0 deletions.
  1. +2 −0 include/zmq.hrl
  2. +2 −0 src/zmq.erl
View
@@ -12,6 +12,8 @@
-define('ZMQ_REP', 4).
-define('ZMQ_XREQ', 5).
-define('ZMQ_XREP', 6).
+-define('ZMQ_PUSH', 7).
+-define('ZMQ_PULL', 8).
-define('ZMQ_UPSTREAM', 7).
-define('ZMQ_DOWNSTREAM', 8).
View
@@ -409,6 +409,8 @@ encode_msg_socket(Type) ->
case Type of
pair -> <<(?ZMQ_SOCKET):8, (?ZMQ_PAIR):8>>;
pub -> <<(?ZMQ_SOCKET):8, (?ZMQ_PUB):8>>;
+ push -> <<(?ZMQ_SOCKET):8, (?ZMQ_PUSH):8>>;
+ pull -> <<(?ZMQ_SOCKET):8, (?ZMQ_PULL):8>>;
sub -> <<(?ZMQ_SOCKET):8, (?ZMQ_SUB):8>>;
req -> <<(?ZMQ_SOCKET):8, (?ZMQ_REQ):8>>;
rep -> <<(?ZMQ_SOCKET):8, (?ZMQ_REP):8>>;

0 comments on commit 1d1527e

Please sign in to comment.