aboutsummaryrefslogtreecommitdiff
path: root/src/sp/transport/udp
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/transport/udp
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/transport/udp')
-rw-r--r--src/sp/transport/udp/udp_tran_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sp/transport/udp/udp_tran_test.c b/src/sp/transport/udp/udp_tran_test.c
index b1c3b60a..8157c082 100644
--- a/src/sp/transport/udp/udp_tran_test.c
+++ b/src/sp/transport/udp/udp_tran_test.c
@@ -297,7 +297,7 @@ udp_recv_count_cb(void *arg)
}
nng_aio_set_timeout(c->aio, 1000);
- nng_recv_aio(c->sock, c->aio);
+ nng_socket_recv(c->sock, c->aio);
}
// This test uses callbacks above to ensure we
@@ -371,7 +371,7 @@ test_udp_multi_small_burst(void)
rc.len = 95;
rc.expect = msg;
- nng_recv_aio(rc.sock, rc.aio);
+ nng_socket_recv(rc.sock, rc.aio);
// Experimentally at least on Darwin, we see some packet losses
// even for loopback. Loss rates appear depressingly high.