From 0d23af92531b7c0dd6d7b74c73c1a8c4811c7d13 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Wed, 1 Jan 2025 12:44:02 -0800 Subject: protocols: move content from the protocols to nng.h This should simplify things for developers. Just one header to include in most cases now. --- src/sp/reconnect_stress_test.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'src/sp/reconnect_stress_test.c') diff --git a/src/sp/reconnect_stress_test.c b/src/sp/reconnect_stress_test.c index 578e34bd..685f8b98 100644 --- a/src/sp/reconnect_stress_test.c +++ b/src/sp/reconnect_stress_test.c @@ -1,4 +1,5 @@ // +// Copyright 2025 Staysail Systems, Inc. // Copyright 2024 Aleksei Solovev // // This software is supplied under the terms of the MIT License, a @@ -10,10 +11,6 @@ #include #include #include -#include -#include -#include -#include #include @@ -187,7 +184,7 @@ void surveyor_open(struct work *w) { w->start = ping_start; - NUTS_PASS(nng_surveyor_open(&w->socket)); + NUTS_PASS(nng_surveyor0_open(&w->socket)); NUTS_PASS(nng_socket_set_ms( w->socket, NNG_OPT_SURVEYOR_SURVEYTIME, SURVEY_TIMEOUT_MS)); NUTS_PASS(nng_aio_alloc(&w->aio, ping_cb, w)); @@ -198,7 +195,7 @@ void respondent_open(struct work *w) { w->start = echo_start; - NUTS_PASS(nng_respondent_open(&w->socket)); + NUTS_PASS(nng_respondent0_open(&w->socket)); NUTS_PASS(nng_aio_alloc(&w->aio, echo_cb, w)); nni_atomic_init(&w->received); } @@ -207,7 +204,7 @@ void req_open(struct work *w) { w->start = ping_start; - NUTS_PASS(nng_req_open(&w->socket)); + NUTS_PASS(nng_req0_open(&w->socket)); NUTS_PASS(nng_aio_alloc(&w->aio, ping_cb, w)); nni_atomic_init(&w->received); } @@ -216,7 +213,7 @@ void rep_open(struct work *w) { w->start = echo_start; - NUTS_PASS(nng_rep_open(&w->socket)); + NUTS_PASS(nng_rep0_open(&w->socket)); NUTS_PASS(nng_aio_alloc(&w->aio, echo_cb, w)); nni_atomic_init(&w->received); } -- cgit v1.2.3-70-g09d2