aboutsummaryrefslogtreecommitdiff
path: root/src/sp/protocol/pair0
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2025-01-03 12:46:33 -0800
committerGarrett D'Amore <garrett@damore.org>2025-01-04 09:48:44 -0800
commit57e736b5be2052484eec44889586bd89a2724c71 (patch)
treef579d2863d7d31e202f083ab6d5f5fe85651e64c /src/sp/protocol/pair0
parentcefc6e1995f7f8e53e16db745eac7a86c2ebffd3 (diff)
downloadnng-57e736b5be2052484eec44889586bd89a2724c71.tar.gz
nng-57e736b5be2052484eec44889586bd89a2724c71.tar.bz2
nng-57e736b5be2052484eec44889586bd89a2724c71.zip
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.
Diffstat (limited to 'src/sp/protocol/pair0')
-rw-r--r--src/sp/protocol/pair0/pair0_test.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sp/protocol/pair0/pair0_test.c b/src/sp/protocol/pair0/pair0_test.c
index dc3264be..6a530e99 100644
--- a/src/sp/protocol/pair0/pair0_test.c
+++ b/src/sp/protocol/pair0/pair0_test.c
@@ -210,7 +210,7 @@ test_pair0_send_stopped_aio(void)
NUTS_PASS(nng_pair0_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);
@@ -229,7 +229,7 @@ test_pair0_send_canceled_aio(void)
NUTS_PASS(nng_msg_alloc(&msg, 0));
NUTS_PASS(nng_pair0_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);
@@ -247,7 +247,7 @@ test_pair0_recv_stopped_aio(void)
NUTS_PASS(nng_aio_alloc(&aio, NULL, NULL));
NUTS_PASS(nng_pair0_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);
@@ -262,7 +262,7 @@ test_pair0_recv_canceled_aio(void)
NUTS_PASS(nng_aio_alloc(&aio, NULL, NULL));
NUTS_PASS(nng_pair0_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);