diff options
| author | Garrett D'Amore <garrett@damore.org> | 2024-11-03 00:51:15 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2024-11-03 00:58:37 -0700 |
| commit | b3fc8a44119d7ab90366a1b92a5e1327ebcb8145 (patch) | |
| tree | 994c0199184fdea3d56eeb61b252e10733588947 /tests | |
| parent | 02ec0b55cbee5de4d0fd688ce0ebddf08178dc98 (diff) | |
| download | nng-b3fc8a44119d7ab90366a1b92a5e1327ebcb8145.tar.gz nng-b3fc8a44119d7ab90366a1b92a5e1327ebcb8145.tar.bz2 nng-b3fc8a44119d7ab90366a1b92a5e1327ebcb8145.zip | |
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.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/multistress.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |
