aboutsummaryrefslogtreecommitdiff
path: root/src/sp/protocol/pipeline0
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp/protocol/pipeline0')
-rw-r--r--src/sp/protocol/pipeline0/pull_test.c10
-rw-r--r--src/sp/protocol/pipeline0/push_test.c14
2 files changed, 12 insertions, 12 deletions
diff --git a/src/sp/protocol/pipeline0/pull_test.c b/src/sp/protocol/pipeline0/pull_test.c
index 131ff92c..8ed9cc0e 100644
--- a/src/sp/protocol/pipeline0/pull_test.c
+++ b/src/sp/protocol/pipeline0/pull_test.c
@@ -173,7 +173,7 @@ test_pull_recv_aio_stopped(void)
NUTS_PASS(nng_aio_alloc(&aio, NULL, NULL));
nng_aio_stop(aio);
- nng_recv_aio(s, aio);
+ nng_socket_recv(s, aio);
nng_aio_wait(aio);
NUTS_FAIL(nng_aio_result(aio), NNG_ESTOPPED);
NUTS_CLOSE(s);
@@ -189,7 +189,7 @@ test_pull_recv_aio_canceled(void)
NUTS_PASS(nng_pull0_open(&s));
NUTS_PASS(nng_aio_alloc(&aio, NULL, NULL));
- nng_recv_aio(s, aio);
+ nng_socket_recv(s, aio);
nng_aio_cancel(aio);
nng_aio_wait(aio);
NUTS_FAIL(nng_aio_result(aio), NNG_ECANCELED);
@@ -206,7 +206,7 @@ test_pull_close_recv(void)
NUTS_PASS(nng_pull0_open(&s));
NUTS_PASS(nng_aio_alloc(&aio, NULL, NULL));
nng_aio_set_timeout(aio, 1000);
- nng_recv_aio(s, aio);
+ nng_socket_recv(s, aio);
NUTS_CLOSE(s);
nng_aio_wait(aio);
NUTS_FAIL(nng_aio_result(aio), NNG_ECLOSED);
@@ -224,7 +224,7 @@ test_pull_recv_nonblock(void)
NUTS_PASS(nng_aio_alloc(&aio, NULL, NULL));
nng_aio_set_timeout(aio, 0); // Instant timeout
- nng_recv_aio(s, aio);
+ nng_socket_recv(s, aio);
nng_aio_wait(aio);
NUTS_FAIL(nng_aio_result(aio), NNG_ETIMEDOUT);
@@ -242,7 +242,7 @@ test_pull_recv_abort(void)
NUTS_PASS(nng_aio_alloc(&aio, NULL, NULL));
nng_aio_set_timeout(aio, 1000);
- nng_recv_aio(s, aio);
+ nng_socket_recv(s, aio);
nng_aio_abort(aio, NNG_EAMBIGUOUS);
nng_aio_wait(aio);
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);