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/rep_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/rep_test.c')
| -rw-r--r-- | src/sp/protocol/reqrep0/rep_test.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/sp/protocol/reqrep0/rep_test.c b/src/sp/protocol/reqrep0/rep_test.c index 29c5ee4c..7c788d96 100644 --- a/src/sp/protocol/reqrep0/rep_test.c +++ b/src/sp/protocol/reqrep0/rep_test.c @@ -163,8 +163,8 @@ test_rep_double_recv(void) NUTS_PASS(nng_aio_alloc(&aio1, NULL, NULL)); NUTS_PASS(nng_aio_alloc(&aio2, NULL, NULL)); - nng_recv_aio(s1, aio1); - nng_recv_aio(s1, aio2); + nng_socket_recv(s1, aio1); + nng_socket_recv(s1, aio2); nng_aio_wait(aio2); NUTS_FAIL(nng_aio_result(aio2), NNG_ESTATE); @@ -203,12 +203,12 @@ test_rep_huge_send(void) NUTS_SEND(req, "R"); NUTS_RECV(rep, "R"); nng_aio_set_msg(aio, m); - nng_send_aio(rep, aio); + nng_socket_send(rep, aio); nng_aio_wait(aio); NUTS_PASS(nng_aio_result(aio)); nng_aio_set_msg(aio, NULL); m = NULL; - nng_recv_aio(req, aio); + nng_socket_recv(req, aio); nng_aio_wait(aio); NUTS_PASS(nng_aio_result(aio)); m = nng_aio_get_msg(aio); @@ -260,12 +260,12 @@ test_rep_huge_send_socket(void) NUTS_SEND(req, "R"); NUTS_RECV(rep, "R"); nng_aio_set_msg(aio, m); - nng_send_aio(rep, aio); + nng_socket_send(rep, aio); nng_aio_wait(aio); NUTS_PASS(nng_aio_result(aio)); nng_aio_set_msg(aio, NULL); m = NULL; - nng_recv_aio(req, aio); + nng_socket_recv(req, aio); nng_aio_wait(aio); NUTS_PASS(nng_aio_result(aio)); m = nng_aio_get_msg(aio); @@ -306,7 +306,7 @@ test_rep_close_pipe_before_send(void) NUTS_MARRY(req, rep); NUTS_SEND(req, "test"); - nng_recv_aio(rep, aio1); + nng_socket_recv(rep, aio1); nng_aio_wait(aio1); NUTS_PASS(nng_aio_result(aio1)); NUTS_TRUE((m = nng_aio_get_msg(aio1)) != NULL); @@ -531,7 +531,7 @@ test_rep_close_recv(void) NUTS_MARRY(req, rep); NUTS_PASS(nng_aio_alloc(&aio, NULL, NULL)); - nng_recv_aio(rep, aio); + nng_socket_recv(rep, aio); NUTS_CLOSE(rep); NUTS_CLOSE(req); nng_aio_wait(aio); @@ -580,7 +580,7 @@ test_rep_close_recv_cb(void) NUTS_MARRY(req, rep); NUTS_PASS(nng_aio_alloc(&state.aio, rep_close_recv_cb, &state)); - nng_recv_aio(rep, state.aio); + nng_socket_recv(rep, state.aio); NUTS_CLOSE(rep); NUTS_CLOSE(req); nng_mtx_lock(state.mtx); |
