diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-01-18 21:02:47 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-01-18 21:02:47 -0800 |
| commit | f2804cec25fa20ec0bf3e37ea99d89d117fce86a (patch) | |
| tree | 03f7c7442e2553f736af56f716d066f397e9259e /tests/tcp.c | |
| parent | e6cded3832c9e92c922d49d824b446ce33fbf120 (diff) | |
| download | nng-f2804cec25fa20ec0bf3e37ea99d89d117fce86a.tar.gz nng-f2804cec25fa20ec0bf3e37ea99d89d117fce86a.tar.bz2 nng-f2804cec25fa20ec0bf3e37ea99d89d117fce86a.zip | |
Fix TCP hostname wildcards on Windows. Sort of.
I seem to be having a very difficult time getting dual-stack sockets
to function properly on Windows. I've sort of abandoned it for now.
I need to think about how to solve this -- it's not clear to me
right now whether dual stack sockets are the right answer or not.
People do expect these to work, but a tcp6:// url might be more
elegant.
Diffstat (limited to 'tests/tcp.c')
| -rw-r--r-- | tests/tcp.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/tcp.c b/tests/tcp.c index ea97454e..4cc9070e 100644 --- a/tests/tcp.c +++ b/tests/tcp.c @@ -14,6 +14,8 @@ // Inproc tests. TestMain("TCP Transport", { + int rv; + nni_init(); trantest_test_all("tcp://127.0.0.1:4450"); @@ -37,8 +39,9 @@ TestMain("TCP Transport", { nng_close(s2); nng_close(s1); }) - So(nng_listen(s1, "tcp://*:5599", NULL, NNG_FLAG_SYNCH) == 0); - So(nng_dial(s2, "tcp://127.0.0.1:5599", NULL, NNG_FLAG_SYNCH) == 0); + So(nng_listen(s1, "tcp://*:5771", NULL, NNG_FLAG_SYNCH) == 0); + So(nng_dial(s2, "tcp://127.0.0.1:5771", NULL, NNG_FLAG_SYNCH) == 0); + fflush(stdout); }) nni_fini(); |
