aboutsummaryrefslogtreecommitdiff
path: root/src/sp/reconnect_stress_test.c
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/reconnect_stress_test.c
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/reconnect_stress_test.c')
-rw-r--r--src/sp/reconnect_stress_test.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sp/reconnect_stress_test.c b/src/sp/reconnect_stress_test.c
index 685f8b98..3602a6db 100644
--- a/src/sp/reconnect_stress_test.c
+++ b/src/sp/reconnect_stress_test.c
@@ -53,7 +53,7 @@ work_send(struct work *w, void *data, size_t size)
PASS(nng_msg_alloc(&msg, 0));
PASS(nng_msg_append(msg, data, size));
nng_aio_set_msg(w->aio, msg);
- nng_send_aio(w->socket, w->aio);
+ nng_socket_send(w->socket, w->aio);
}
void
@@ -120,7 +120,7 @@ ping_cb(void *arg)
switch (w->state) {
case SEND:
w->state = RECV;
- nng_recv_aio(w->socket, w->aio);
+ nng_socket_recv(w->socket, w->aio);
break;
case RECV:
msg = nng_aio_get_msg(w->aio);
@@ -138,7 +138,7 @@ void
echo_start(struct work *w)
{
w->state = RECV;
- nng_recv_aio(w->socket, w->aio);
+ nng_socket_recv(w->socket, w->aio);
}
void