aboutsummaryrefslogtreecommitdiff
path: root/src/sp/pipe_test.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2025-01-01 12:44:02 -0800
committerGarrett D'Amore <garrett@damore.org>2025-01-01 12:44:02 -0800
commit0d23af92531b7c0dd6d7b74c73c1a8c4811c7d13 (patch)
tree2dc9ded3dfc724df42a360a9f2de359f406e537f /src/sp/pipe_test.c
parentf8a2abaf931557030fd6e6683617c6a7877eebf7 (diff)
downloadnng-0d23af92531b7c0dd6d7b74c73c1a8c4811c7d13.tar.gz
nng-0d23af92531b7c0dd6d7b74c73c1a8c4811c7d13.tar.bz2
nng-0d23af92531b7c0dd6d7b74c73c1a8c4811c7d13.zip
protocols: move content from the protocols to nng.h
This should simplify things for developers. Just one header to include in most cases now.
Diffstat (limited to 'src/sp/pipe_test.c')
-rw-r--r--src/sp/pipe_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sp/pipe_test.c b/src/sp/pipe_test.c
index c0219813..7a50c133 100644
--- a/src/sp/pipe_test.c
+++ b/src/sp/pipe_test.c
@@ -113,8 +113,8 @@ init_cases(char *addr, struct testcase *push, struct testcase *pull)
NUTS_PASS(nng_mtx_alloc(&pull->lk));
NUTS_PASS(nng_cv_alloc(&pull->cv, pull->lk));
- NUTS_PASS(nng_push_open(&push->s));
- NUTS_PASS(nng_pull_open(&pull->s));
+ NUTS_PASS(nng_push0_open(&push->s));
+ NUTS_PASS(nng_pull0_open(&pull->s));
NUTS_PASS(nng_socket_set_ms(push->s, NNG_OPT_RECONNMINT, 10));
NUTS_PASS(nng_socket_set_ms(push->s, NNG_OPT_RECONNMAXT, 10));