diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-08-14 15:27:38 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-08-14 15:27:38 -0700 |
| commit | 63479c2938cbc80c1aac9367cb95564f6e7540e1 (patch) | |
| tree | 495584b637f73b593d25f01577eeaa944477f159 /tests/pipeline.c | |
| parent | 343417234aa3fd86e8ae0b56ae500a1ed3411cfc (diff) | |
| download | nng-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/pipeline.c')
| -rw-r--r-- | tests/pipeline.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/pipeline.c b/tests/pipeline.c index e19faa9a..70b52350 100644 --- a/tests/pipeline.c +++ b/tests/pipeline.c @@ -75,9 +75,9 @@ Main({ // Its important to avoid a startup race that the // sender be the dialer. Otherwise you need a delay // since the server accept is really asynchronous. - So(nng_listen(pull, addr, NULL, NNG_FLAG_SYNCH) == 0); - So(nng_dial(push, addr, NULL, NNG_FLAG_SYNCH) == 0); - So(nng_dial(what, addr, NULL, NNG_FLAG_SYNCH) == 0); + So(nng_listen(pull, addr, NULL, 0) == 0); + So(nng_dial(push, addr, NULL, 0) == 0); + So(nng_dial(what, addr, NULL, 0) == 0); So(nng_shutdown(what) == 0); Convey("Push can send messages, and pull can recv", { @@ -152,10 +152,10 @@ Main({ sizeof(usecs)) == 0); So(nng_setopt(pull3, NNG_OPT_RCVTIMEO, &usecs, sizeof(usecs)) == 0); - So(nng_listen(push, addr, NULL, NNG_FLAG_SYNCH) == 0); - So(nng_dial(pull1, addr, NULL, NNG_FLAG_SYNCH) == 0); - So(nng_dial(pull2, addr, NULL, NNG_FLAG_SYNCH) == 0); - So(nng_dial(pull3, addr, NULL, NNG_FLAG_SYNCH) == 0); + So(nng_listen(push, addr, NULL, 0) == 0); + So(nng_dial(pull1, addr, NULL, 0) == 0); + So(nng_dial(pull2, addr, NULL, 0) == 0); + So(nng_dial(pull3, addr, NULL, 0) == 0); So(nng_shutdown(pull3) == 0); // So pull3 might not be done accepting yet, but pull1 |
