From 2e6f76636e2adbc5e2bc4659a0639d83eb3f2d59 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 17 Mar 2018 17:21:43 -0700 Subject: fixes #287 remove NNG_OPT_DOMAIN, NNG_OPT_PROTOCOL, and NNG_OPT_TRANSPORT While here we documented that certain options are not supported in the compatibility layer. --- tests/sock.c | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'tests') diff --git a/tests/sock.c b/tests/sock.c index 1f7567f8..f1570fd8 100644 --- a/tests/sock.c +++ b/tests/sock.c @@ -88,8 +88,6 @@ TestMain("Socket Operations", { NNG_EREADONLY); So(nng_setopt(s1, NNG_OPT_LOCADDR, "a", 1) == NNG_EREADONLY); - So(nng_setopt_int(s1, NNG_OPT_DOMAIN, 3) == - NNG_EREADONLY); }); Convey("Sockname option works", { @@ -121,15 +119,13 @@ TestMain("Socket Operations", { So(strcmp(name, "hello") == 0); }); - Convey("Domain option works", { - int dom; - So(nng_getopt_int(s1, NNG_OPT_DOMAIN, &dom) == - 0); - So(dom == 1); // NN_AF_SP + Convey("RAW option works", { + int raw; + So(nng_getopt_int(s1, NNG_OPT_RAW, &raw) == 0); + So(raw == 0); So(nng_setopt_int(s1, NNG_OPT_RAW, 1) == 0); - So(nng_getopt_int(s1, NNG_OPT_DOMAIN, &dom) == - 0); - So(dom == 2); // NN_AF_SP_RAW + So(nng_getopt_int(s1, NNG_OPT_RAW, &raw) == 0); + So(raw == 1); }); Convey("URL option works", { -- cgit v1.2.3-70-g09d2