From 36fd87810274329c8cd86344b95a0521541e7bab Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Sat, 21 Apr 2012 07:07:57 +0200 Subject: xs_shutdown implemented This patch allows for partial shutdown of the socket. Signed-off-by: Martin Sustrik --- tests/resubscribe.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/resubscribe.cpp') diff --git a/tests/resubscribe.cpp b/tests/resubscribe.cpp index 1924434..5d78712 100644 --- a/tests/resubscribe.cpp +++ b/tests/resubscribe.cpp @@ -34,13 +34,13 @@ int XS_TEST_MAIN () // Send two subscriptions upstream. int rc = xs_bind (xpub, "tcp://127.0.0.1:5560"); - assert (rc == 0); + assert (rc != -1); rc = xs_setsockopt (sub, XS_SUBSCRIBE, "a", 1); assert (rc == 0); rc = xs_setsockopt (sub, XS_SUBSCRIBE, "b", 1); assert (rc == 0); rc = xs_connect (sub, "tcp://127.0.0.1:5560"); - assert (rc == 0); + assert (rc != -1); // Check whether subscriptions are correctly received. char buf [5]; @@ -68,7 +68,7 @@ int XS_TEST_MAIN () xpub = xs_socket (ctx, XS_XPUB); assert (xpub); rc = xs_bind (xpub, "tcp://127.0.0.1:5560"); - assert (rc == 0); + assert (rc != -1); // We have to give control to the SUB socket here so that it has // chance to resend the subscriptions. -- cgit v1.2.3