summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2010-12-04 23:14:38 +0100
committerMartin Sustrik <sustrik@250bpm.com>2010-12-04 23:14:38 +0100
commitc80e7b80cc726ca7c29493c2553c8d19792bb6e5 (patch)
tree9c740ee660e900766a6f7d7e8a48bb09a6b72c4b /include
parentabc8b5e40c55deb96e7674b15629f2affa4eb92a (diff)
XPUB and XSUB socket types added.
These are just placeholders. At the moment XPUB behaves th same as PUB and XSUB as SUB. Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'include')
-rw-r--r--include/zmq.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/zmq.h b/include/zmq.h
index 692f1c1..997595b 100644
--- a/include/zmq.h
+++ b/include/zmq.h
@@ -68,7 +68,7 @@ ZMQ_EXPORT void zmq_version (int *major, int *minor, int *patch);
/* 0MQ errors. */
/******************************************************************************/
-/* A number random anough not to collide with different errno ranges on */
+/* A number random enough not to collide with different errno ranges on */
/* different OSes. The assumption is that error_t is at least 32-bit type. */
#define ZMQ_HAUSNUMERO 156384712
@@ -178,6 +178,8 @@ ZMQ_EXPORT int zmq_term (void *context);
#define ZMQ_XREP 6
#define ZMQ_PULL 7
#define ZMQ_PUSH 8
+#define ZMQ_XPUB 9
+#define ZMQ_XSUB 10
#define ZMQ_UPSTREAM ZMQ_PULL /* Old alias, remove in 3.x */
#define ZMQ_DOWNSTREAM ZMQ_PUSH /* Old alias, remove in 3.x */