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/tcp.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/tcp.c')
| -rw-r--r-- | tests/tcp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/tcp.c b/tests/tcp.c index 58c9bca7..324c167e 100644 --- a/tests/tcp.c +++ b/tests/tcp.c @@ -24,7 +24,7 @@ TestMain("TCP Transport", { So(nng_pair_open(&s) == 0); Reset({ nng_close(s); }); trantest_next_address(addr, "tcp://*:%u"); - So(nng_dial(s, addr, NULL, NNG_FLAG_SYNCH) == NNG_EADDRINVAL); + So(nng_dial(s, addr, NULL, 0) == NNG_EADDRINVAL); }); Convey("We can bind to wild card", { @@ -39,10 +39,10 @@ TestMain("TCP Transport", { nng_close(s1); }); trantest_next_address(addr, "tcp://*:%u"); - So(nng_listen(s1, addr, NULL, NNG_FLAG_SYNCH) == 0); + So(nng_listen(s1, addr, NULL, 0) == 0); // reset port back one trantest_prev_address(addr, "tcp://127.0.0.1:%u"); - So(nng_dial(s2, addr, NULL, NNG_FLAG_SYNCH) == 0); + So(nng_dial(s2, addr, NULL, 0) == 0); }); nng_fini(); |
