From 48d0c0340f16b580443b3aba53c8bf618572fa6a Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 17 Nov 2024 11:40:37 -0800 Subject: remove NNG_OPT_SOCKNAME (and socket names altogether) This functionality was provided principally for libnanomsg compatibility. This saves some memory and eliminates some pointless functionality. While here, updated the socket options documentation to remove references to options already removed. --- src/core/stats_test.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/core/stats_test.c') diff --git a/src/core/stats_test.c b/src/core/stats_test.c index e15b4001..8912d44e 100644 --- a/src/core/stats_test.c +++ b/src/core/stats_test.c @@ -25,7 +25,6 @@ test_stats_socket(void) NUTS_OPEN(s1); NUTS_OPEN(s2); - nng_socket_set_string(s2, NNG_OPT_SOCKNAME, "second"); NUTS_MARRY(s1, s2); NUTS_SEND(s1, "ping"); NUTS_RECV(s2, "ping"); @@ -37,14 +36,6 @@ test_stats_socket(void) NUTS_ASSERT(st1 != NULL); NUTS_ASSERT(st2 != NULL); NUTS_ASSERT(st1 != st2); - item = nng_stat_find(st1, "name"); - NUTS_ASSERT(item != NULL); - NUTS_ASSERT(nng_stat_string(item) != NULL); - NUTS_MATCH(nng_stat_string(item), "1"); - item = nng_stat_find(st2, "name"); - NUTS_ASSERT(item != NULL); - NUTS_ASSERT(nng_stat_string(item) != NULL); - NUTS_MATCH(nng_stat_string(item), "second"); item = nng_stat_find(st1, "tx_msgs"); NUTS_ASSERT(item != NULL); NUTS_ASSERT(nng_stat_value(item) == 1); @@ -71,7 +62,6 @@ test_stats_dump(void) NUTS_OPEN(s1); NUTS_OPEN(s2); - nng_socket_set_string(s2, NNG_OPT_SOCKNAME, "second"); NUTS_MARRY(s1, s2); NUTS_SEND(s1, "ping"); NUTS_RECV(s2, "ping"); -- cgit v1.2.3-70-g09d2