aboutsummaryrefslogtreecommitdiff
path: root/tests/device.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-08-14 15:27:38 -0700
committerGarrett D'Amore <garrett@damore.org>2017-08-14 15:27:38 -0700
commit63479c2938cbc80c1aac9367cb95564f6e7540e1 (patch)
tree495584b637f73b593d25f01577eeaa944477f159 /tests/device.c
parent343417234aa3fd86e8ae0b56ae500a1ed3411cfc (diff)
downloadnng-63479c2938cbc80c1aac9367cb95564f6e7540e1.tar.gz
nng-63479c2938cbc80c1aac9367cb95564f6e7540e1.tar.bz2
nng-63479c2938cbc80c1aac9367cb95564f6e7540e1.zip
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.
Diffstat (limited to 'tests/device.c')
-rw-r--r--tests/device.c8
1 files changed, 4 insertions, 4 deletions
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,