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/reconnect.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/reconnect.cpp') diff --git a/tests/reconnect.cpp b/tests/reconnect.cpp index c677527..ebbaf32 100644 --- a/tests/reconnect.cpp +++ b/tests/reconnect.cpp @@ -34,7 +34,7 @@ int XS_TEST_MAIN () // Connect before bind was done at the peer and send one message. int rc = xs_connect (push, "tcp://127.0.0.1:5560"); - assert (rc == 0); + assert (rc != -1); rc = xs_send (push, "ABC", 3, 0); assert (rc == 3); @@ -43,7 +43,7 @@ int XS_TEST_MAIN () // Bind the peer and get the message. rc = xs_bind (pull, "tcp://127.0.0.1:5560"); - assert (rc == 0); + assert (rc != -1); unsigned char buf [3]; rc = xs_recv (pull, buf, sizeof (buf), 0); assert (rc == 3); @@ -64,7 +64,7 @@ int XS_TEST_MAIN () // Connect before bind was done at the peer and send one message. rc = xs_connect (push, "ipc:///tmp/tester"); - assert (rc == 0); + assert (rc != -1); rc = xs_send (push, "ABC", 3, 0); assert (rc == 3); @@ -73,7 +73,7 @@ int XS_TEST_MAIN () // Bind the peer and get the message. rc = xs_bind (pull, "ipc:///tmp/tester"); - assert (rc == 0); + assert (rc != -1); rc = xs_recv (pull, buf, sizeof (buf), 0); assert (rc == 3); -- cgit v1.2.3