From bc4a1ce3345f4e5904e4b13c618f90def21256a5 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Thu, 24 Mar 2011 16:47:33 +0100 Subject: ZMQ_HWM split into ZMQ_SNDHWM and ZMQ_RCVHWM These new options allow to control the maximum size of the inbound and outbound message pipe separately. Signed-off-by: Martin Sustrik --- tests/test_hwm.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/test_hwm.cpp b/tests/test_hwm.cpp index a96193d..9f3aac1 100644 --- a/tests/test_hwm.cpp +++ b/tests/test_hwm.cpp @@ -33,14 +33,14 @@ int main (int argc, char *argv []) void *sb = zmq_socket (ctx, ZMQ_PULL); assert (sb); int hwm = 2; - int rc = zmq_setsockopt (sb, ZMQ_HWM, &hwm, sizeof (hwm)); + int rc = zmq_setsockopt (sb, ZMQ_RCVHWM, &hwm, sizeof (hwm)); assert (rc == 0); rc = zmq_bind (sb, "inproc://a"); assert (rc == 0); void *sc = zmq_socket (ctx, ZMQ_PUSH); assert (sc); - rc = zmq_setsockopt (sc, ZMQ_HWM, &hwm, sizeof (hwm)); + rc = zmq_setsockopt (sc, ZMQ_SNDHWM, &hwm, sizeof (hwm)); assert (rc == 0); rc = zmq_connect (sc, "inproc://a"); assert (rc == 0); -- cgit v1.2.3