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/pipeline0/push_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/pipeline0/push_test.c')
| -rw-r--r-- | src/sp/protocol/pipeline0/push_test.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/sp/protocol/pipeline0/push_test.c b/src/sp/protocol/pipeline0/push_test.c index 579178b5..c2a99fb5 100644 --- a/src/sp/protocol/pipeline0/push_test.c +++ b/src/sp/protocol/pipeline0/push_test.c @@ -250,7 +250,7 @@ test_push_send_aio_stopped(void) nng_aio_set_msg(aio, m); nng_aio_stop(aio); - nng_send_aio(s, aio); + nng_socket_send(s, aio); nng_aio_wait(aio); NUTS_FAIL(nng_aio_result(aio), NNG_ESTOPPED); NUTS_CLOSE(s); @@ -270,7 +270,7 @@ test_push_close_send(void) NUTS_PASS(nng_msg_alloc(&m, 0)); nng_aio_set_timeout(aio, 1000); nng_aio_set_msg(aio, m); - nng_send_aio(s, aio); + nng_socket_send(s, aio); NUTS_CLOSE(s); nng_aio_wait(aio); NUTS_FAIL(nng_aio_result(aio), NNG_ECLOSED); @@ -292,7 +292,7 @@ test_push_send_nonblock(void) nng_aio_set_timeout(aio, 0); // Instant timeout nng_aio_set_msg(aio, m); - nng_send_aio(s, aio); + nng_socket_send(s, aio); nng_aio_wait(aio); NUTS_FAIL(nng_aio_result(aio), NNG_ETIMEDOUT); @@ -314,7 +314,7 @@ test_push_send_timeout(void) nng_aio_set_timeout(aio, 10); nng_aio_set_msg(aio, m); - nng_send_aio(s, aio); + nng_socket_send(s, aio); nng_aio_wait(aio); NUTS_FAIL(nng_aio_result(aio), NNG_ETIMEDOUT); @@ -336,7 +336,7 @@ test_push_send_cancel(void) nng_aio_set_timeout(aio, 1000); nng_aio_set_msg(aio, m); - nng_send_aio(s, aio); + nng_socket_send(s, aio); nng_aio_abort(aio, NNG_ECANCELED); nng_aio_wait(aio); @@ -362,7 +362,7 @@ test_push_send_late_unbuffered(void) nng_aio_set_timeout(aio, 1000); nng_aio_set_msg(aio, m); - nng_send_aio(s, aio); + nng_socket_send(s, aio); NUTS_MARRY(s, pull); @@ -391,7 +391,7 @@ test_push_send_late_buffered(void) nng_aio_set_timeout(aio, 1000); nng_aio_set_msg(aio, m); - nng_send_aio(s, aio); + nng_socket_send(s, aio); NUTS_MARRY(s, pull); |
