From f2804cec25fa20ec0bf3e37ea99d89d117fce86a Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Wed, 18 Jan 2017 21:02:47 -0800 Subject: 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. --- tests/tcp.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'tests/tcp.c') 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(); -- cgit v1.2.3-70-g09d2