From 57e736b5be2052484eec44889586bd89a2724c71 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Fri, 3 Jan 2025 12:46:33 -0800 Subject: api: rename nng_send_aio and nng_recv_aio to nng_socket_send and nng_socket_recv This aligns more closely with the nng_ctx functions. --- src/sp/protocol/pair1/pair1_test.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/sp/protocol/pair1') diff --git a/src/sp/protocol/pair1/pair1_test.c b/src/sp/protocol/pair1/pair1_test.c index 8ed6ccbf..8baf139b 100644 --- a/src/sp/protocol/pair1/pair1_test.c +++ b/src/sp/protocol/pair1/pair1_test.c @@ -1,5 +1,5 @@ // -// Copyright 2024 Staysail Systems, Inc. +// Copyright 2025 Staysail Systems, Inc. // Copyright 2017 Capitar IT Group BV // // This software is supplied under the terms of the MIT License, a @@ -9,7 +9,7 @@ // #include "nng/nng.h" -#include +#include "nuts.h" #define SECOND 1000 @@ -276,7 +276,7 @@ test_pair1_send_stopped_aio(void) NUTS_PASS(nng_pair1_open(&s1)); nng_aio_set_msg(aio, msg); nng_aio_stop(aio); - nng_send_aio(s1, aio); + nng_socket_send(s1, aio); nng_aio_wait(aio); NUTS_FAIL(nng_aio_result(aio), NNG_ESTOPPED); nng_msg_free(msg); @@ -295,7 +295,7 @@ test_pair1_send_canceled_aio(void) NUTS_PASS(nng_msg_alloc(&msg, 0)); NUTS_PASS(nng_pair1_open(&s1)); nng_aio_set_msg(aio, msg); - nng_send_aio(s1, aio); + nng_socket_send(s1, aio); nng_aio_cancel(aio); nng_aio_wait(aio); NUTS_FAIL(nng_aio_result(aio), NNG_ECANCELED); @@ -313,7 +313,7 @@ test_pair1_recv_stopped_aio(void) NUTS_PASS(nng_aio_alloc(&aio, NULL, NULL)); NUTS_PASS(nng_pair1_open(&s1)); nng_aio_stop(aio); - nng_recv_aio(s1, aio); + nng_socket_recv(s1, aio); nng_aio_wait(aio); NUTS_FAIL(nng_aio_result(aio), NNG_ESTOPPED); nng_aio_free(aio); @@ -328,7 +328,7 @@ test_pair1_recv_canceled_aio(void) NUTS_PASS(nng_aio_alloc(&aio, NULL, NULL)); NUTS_PASS(nng_pair1_open(&s1)); - nng_recv_aio(s1, aio); + nng_socket_recv(s1, aio); nng_aio_cancel(aio); nng_aio_wait(aio); NUTS_FAIL(nng_aio_result(aio), NNG_ECANCELED); -- cgit v1.2.3-70-g09d2