summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2011-10-31 15:51:11 +0100
committerMartin Sustrik <sustrik@250bpm.com>2011-10-31 15:51:11 +0100
commit9227c389331c26d24e515bdd46867013f0cbd641 (patch)
treec91d61ed746c44a1e9467bd46c5be442c9b1bf64
parentdee8b2360ac0084165401dd61fc485226402124d (diff)
ROUTER and DEALER are aliases for XREP and XREQ
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
-rw-r--r--include/zmq.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/zmq.h b/include/zmq.h
index a262d01..3ddad7e 100644
--- a/include/zmq.h
+++ b/include/zmq.h
@@ -163,6 +163,9 @@ ZMQ_EXPORT int zmq_term (void *context);
#define ZMQ_XPUB 9
#define ZMQ_XSUB 10
+#define ZMQ_ROUTER ZMQ_XREP
+#define ZMQ_DEALER ZMQ_XREQ
+
/* Socket options. */
#define ZMQ_AFFINITY 4
#define ZMQ_SUBSCRIBE 6