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/device.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/device.c') diff --git a/tests/device.c b/tests/device.c index ba0ebeca..85a06fca 100644 --- a/tests/device.c +++ b/tests/device.c @@ -67,14 +67,14 @@ Main({ nng_thread_destroy(thr); }); - So(nng_listen(dev1, addr1, NULL, NNG_FLAG_SYNCH) == 0); - So(nng_listen(dev2, addr2, NULL, NNG_FLAG_SYNCH) == 0); + So(nng_listen(dev1, addr1, NULL, 0) == 0); + So(nng_listen(dev2, addr2, NULL, 0) == 0); So(nng_pair_open(&end1) == 0); So(nng_pair_open(&end2) == 0); - So(nng_dial(end1, addr1, NULL, NNG_FLAG_SYNCH) == 0); - So(nng_dial(end2, addr2, NULL, NNG_FLAG_SYNCH) == 0); + So(nng_dial(end1, addr1, NULL, 0) == 0); + So(nng_dial(end2, addr2, NULL, 0) == 0); tmo = 1000000; So(nng_setopt(end1, NNG_OPT_RCVTIMEO, &tmo, -- cgit v1.2.3-70-g09d2