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/survey.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/survey.c')
| -rw-r--r-- | tests/survey.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/survey.c b/tests/survey.c index 2a757a98..2bdd2930 100644 --- a/tests/survey.c +++ b/tests/survey.c @@ -99,18 +99,15 @@ Main({ So(nng_setopt(surv, NNG_OPT_SURVEYTIME, &expire, sizeof(expire)) == 0); - So(nng_listen( - surv, addr, NULL, NNG_FLAG_SYNCH) == 0); - So(nng_dial( - resp, addr, NULL, NNG_FLAG_SYNCH) == 0); + So(nng_listen(surv, addr, NULL, 0) == 0); + So(nng_dial(resp, addr, NULL, 0) == 0); // We dial another socket as that will force // the earlier dial to have completed *fully*. // This is a hack that only works because our // listen logic is single threaded. So(nng_respondent_open(&sock) == 0); - So(nng_dial( - sock, addr, NULL, NNG_FLAG_SYNCH) == 0); + So(nng_dial(sock, addr, NULL, 0) == 0); nng_close(sock); Convey("Survey works", { |
