From b3fc8a44119d7ab90366a1b92a5e1327ebcb8145 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 3 Nov 2024 00:51:15 -0700 Subject: Replace NNG_OPT_SUB_SUBSCRIBE/UNSUBSCRIBE with functions. The main purpose is to eliminate the NNI_TYPE_OPAQUE options, by putting these into their own first class, protocol-specific, functions. --- tests/multistress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/multistress.c b/tests/multistress.c index e58b94d7..b9e48014 100644 --- a/tests/multistress.c +++ b/tests/multistress.c @@ -581,7 +581,7 @@ pubsub0_test(int ntests) if ((rv = nng_aio_alloc(&cli->recd, sub0_recd, cli)) != 0) { fatal("nng_aio_alloc", rv); } - rv = nng_socket_set(cli->sock, NNG_OPT_SUB_SUBSCRIBE, "", 0); + rv = nng_sub0_socket_subscribe(cli->sock, "", 0); if (rv != 0) { fatal("subscribe", rv); } -- cgit v1.2.3-70-g09d2