aboutsummaryrefslogtreecommitdiff
path: root/src/core/stats_test.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2024-11-17 11:40:37 -0800
committerGarrett D'Amore <garrett@damore.org>2024-11-17 11:40:37 -0800
commit48d0c0340f16b580443b3aba53c8bf618572fa6a (patch)
treef10a3118ee0d0351fef52ab877b03dea2fb38de5 /src/core/stats_test.c
parent84ea0eed023c4da5d430422c3c245ced19517bdf (diff)
downloadnng-48d0c0340f16b580443b3aba53c8bf618572fa6a.tar.gz
nng-48d0c0340f16b580443b3aba53c8bf618572fa6a.tar.bz2
nng-48d0c0340f16b580443b3aba53c8bf618572fa6a.zip
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.
Diffstat (limited to 'src/core/stats_test.c')
-rw-r--r--src/core/stats_test.c10
1 files changed, 0 insertions, 10 deletions
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");