Obsolete constants ZMQ_UPSTREAM and ZMQ_DOWNSTREAM removed

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
This commit is contained in:
Martin Sustrik 2011-03-23 15:26:47 +01:00
parent dee5f650dd
commit 34d7854199
2 changed files with 2 additions and 4 deletions

View File

@ -54,8 +54,8 @@ int main (int argc, char *argv [])
// TODO: make the number of I/O threads configurable.
zmq::context_t ctx (1);
zmq::socket_t in_socket (ctx, ZMQ_UPSTREAM);
zmq::socket_t out_socket (ctx, ZMQ_DOWNSTREAM);
zmq::socket_t in_socket (ctx, ZMQ_PULL);
zmq::socket_t out_socket (ctx, ZMQ_PUSH);
int n = 0;
while (true) {

View File

@ -181,8 +181,6 @@ ZMQ_EXPORT int zmq_term (void *context);
#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 */
/* Socket options. */
#define ZMQ_HWM 1