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. --- src/tools/nngcat/nngcat.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/tools/nngcat') diff --git a/src/tools/nngcat/nngcat.c b/src/tools/nngcat/nngcat.c index bdf6823c..da3bd6d6 100644 --- a/src/tools/nngcat/nngcat.c +++ b/src/tools/nngcat/nngcat.c @@ -1065,8 +1065,7 @@ main(int ac, char **av) } for (struct topic *t = topics; t != NULL; t = t->next) { - rv = nng_socket_set( - sock, NNG_OPT_SUB_SUBSCRIBE, t->val, strlen(t->val)); + rv = nng_sub0_socket_subscribe(sock, t->val, strlen(t->val)); if (rv != 0) { fatal("Unable to subscribe to topic %s: %s", t->val, nng_strerror(rv)); -- cgit v1.2.3-70-g09d2