From 63479c2938cbc80c1aac9367cb95564f6e7540e1 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Mon, 14 Aug 2017 15:27:38 -0700 Subject: fixes #63 NNG_FLAG_SYNCH should be the default Also enables creating endpoints that are idle (first part of endpoint options API) and shutting down endpoints. --- tests/reqrep.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/reqrep.c') diff --git a/tests/reqrep.c b/tests/reqrep.c index 447060b0..b27af5ac 100644 --- a/tests/reqrep.c +++ b/tests/reqrep.c @@ -68,8 +68,8 @@ TestMain("REQ/REP pattern", { nng_close(req); }); - So(nng_listen(rep, addr, NULL, NNG_FLAG_SYNCH) == 0); - So(nng_dial(req, addr, NULL, NNG_FLAG_SYNCH) == 0); + So(nng_listen(rep, addr, NULL, 0) == 0); + So(nng_dial(req, addr, NULL, 0) == 0); Convey("They can REQ/REP exchange", { nng_msg *ping; @@ -123,7 +123,7 @@ TestMain("REQ/REP pattern", { So(nng_msg_alloc(&def, 0) == 0); So(nng_msg_append(def, "def", 4) == 0); - So(nng_listen(rep, addr, NULL, NNG_FLAG_SYNCH) == 0); + So(nng_listen(rep, addr, NULL, 0) == 0); So(nng_dial(req, addr, NULL, 0) == 0); So(nng_sendmsg(req, abc, 0) == 0); -- cgit v1.2.3-70-g09d2