diff options
| author | Garrett D'Amore <garrett@damore.org> | 2025-01-03 12:46:33 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2025-01-04 09:48:44 -0800 |
| commit | 57e736b5be2052484eec44889586bd89a2724c71 (patch) | |
| tree | f579d2863d7d31e202f083ab6d5f5fe85651e64c /src/sp/protocol/reqrep0/req_test.c | |
| parent | cefc6e1995f7f8e53e16db745eac7a86c2ebffd3 (diff) | |
| download | nng-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/reqrep0/req_test.c')
| -rw-r--r-- | src/sp/protocol/reqrep0/req_test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sp/protocol/reqrep0/req_test.c b/src/sp/protocol/reqrep0/req_test.c index 13bab6ec..17378c89 100644 --- a/src/sp/protocol/reqrep0/req_test.c +++ b/src/sp/protocol/reqrep0/req_test.c @@ -337,7 +337,7 @@ test_req_disconnect_abort(void) NUTS_MARRY(rep1, req); NUTS_SEND(req, "ping"); NUTS_RECV(rep1, "ping"); - nng_recv_aio(req, aio); + nng_socket_recv(req, aio); NUTS_MARRY(rep2, req); NUTS_CLOSE(rep1); @@ -433,7 +433,7 @@ test_req_cancel_abort_recv(void) NUTS_SLEEP(100); nng_aio_set_timeout(aio, 5 * SECOND); - nng_recv_aio(req, aio); + nng_socket_recv(req, aio); // Give time for this recv to post properly. NUTS_SLEEP(100); @@ -565,7 +565,7 @@ test_req_poll_contention(void) NUTS_TRUE(nuts_poll_fd(fd) == false); nng_aio_set_msg(aio, msg); - nng_send_aio(req, aio); + nng_socket_send(req, aio); for (int i = 0; i < 5; i++) { nng_aio_set_msg(ctx_aio[i], ctx_msg[i]); nng_ctx_send(ctx[i], ctx_aio[i]); |
