From 343417234aa3fd86e8ae0b56ae500a1ed3411cfc Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 12 Aug 2017 12:24:54 -0700 Subject: fixes #62 Endpoint close should be synchronous #62 fixes #66 Make pipe and endpoint structures private This changes a number of things, refactoring endpoints and supporting code to keep their internals private, and making endpoint close synchronous. This will allow us to add a consumer facing API for nng_ep_close(), as well as property APIs, etc. While here a bunch of convoluted and dead code was cleaned up. --- tests/pair1.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'tests/pair1.c') diff --git a/tests/pair1.c b/tests/pair1.c index 5a8311e2..c5916e82 100644 --- a/tests/pair1.c +++ b/tests/pair1.c @@ -73,7 +73,6 @@ TestMain("PAIRv1 protocol", { }); Convey("Monogamous mode ignores new conns", { - int rv; nng_msg *msg; So(nng_listen(s1, addr, NULL, NNG_FLAG_SYNCH) == 0); @@ -394,8 +393,6 @@ TestMain("PAIRv1 protocol", { Convey("Polyamorous default works", { nng_msg *msg; - nng_pipe p1; - size_t sz; So(nng_setopt_int(s1, NNG_OPT_POLYAMOROUS, 1) == 0); -- cgit v1.2.3-70-g09d2