aboutsummaryrefslogtreecommitdiff
path: root/src/supplemental
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2024-11-03 08:38:22 -0800
committerGarrett D'Amore <garrett@damore.org>2024-11-03 08:49:33 -0800
commit4367013d8b56105edd0d27d0b9b6da2becab9717 (patch)
tree1bc6abaaff5b010adc415b3ab25698b59e73f353 /src/supplemental
parent8249242a9325a27e57107d78bfa168e918cc4f7a (diff)
downloadnng-4367013d8b56105edd0d27d0b9b6da2becab9717.tar.gz
nng-4367013d8b56105edd0d27d0b9b6da2becab9717.tar.bz2
nng-4367013d8b56105edd0d27d0b9b6da2becab9717.zip
Remove untyped stream option functions.
The underlying stream APIs have no need for untyped accessors. Another step on the road to removal of NNI_TYPE_OPAQUE.
Diffstat (limited to 'src/supplemental')
-rw-r--r--src/supplemental/websocket/websocket_test.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/supplemental/websocket/websocket_test.c b/src/supplemental/websocket/websocket_test.c
index d784c1bc..f648f740 100644
--- a/src/supplemental/websocket/websocket_test.c
+++ b/src/supplemental/websocket/websocket_test.c
@@ -172,15 +172,10 @@ test_websocket_conn_props(void)
NUTS_TRUE(sa1.s_in.sa_addr == sa2.s_in.sa_addr);
NUTS_TRUE(sa1.s_in.sa_port == sa2.s_in.sa_port);
- on = false;
- sz = sizeof(on);
- NUTS_PASS(nng_stream_get(c1, NNG_OPT_TCP_NODELAY, &on, &sz));
- NUTS_TRUE(sz == sizeof(on));
+ NUTS_PASS(nng_stream_get_bool(c1, NNG_OPT_TCP_NODELAY, &on));
NUTS_TRUE(on == true);
- sz = sizeof(on);
- NUTS_PASS(nng_stream_get(c2, NNG_OPT_TCP_KEEPALIVE, &on, &sz));
- NUTS_TRUE(sz == sizeof(on));
+ NUTS_PASS(nng_stream_get_bool(c2, NNG_OPT_TCP_KEEPALIVE, &on));
NUTS_FAIL(
nng_stream_get_size(c1, NNG_OPT_TCP_NODELAY, &sz), NNG_EBADTYPE);