From 57e736b5be2052484eec44889586bd89a2724c71 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Fri, 3 Jan 2025 12:46:33 -0800 Subject: 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. --- src/sp/protocol/reqrep0/reqstress_test.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/sp/protocol/reqrep0/reqstress_test.c') diff --git a/src/sp/protocol/reqrep0/reqstress_test.c b/src/sp/protocol/reqrep0/reqstress_test.c index 9c0861d8..2b2e1980 100644 --- a/src/sp/protocol/reqrep0/reqstress_test.c +++ b/src/sp/protocol/reqrep0/reqstress_test.c @@ -1,5 +1,5 @@ // -// Copyright 2024 Staysail Systems, Inc. +// Copyright 2025 Staysail Systems, Inc. // Copyright 2018 Capitar IT Group BV // // This software is supplied under the terms of the MIT License, a @@ -12,9 +12,9 @@ #include #include -#include +#include "nng/nng.h" -#include +#include "nuts.h" #ifdef NDEBUG #define dprintf(...) @@ -114,7 +114,7 @@ rep_recv_cb(void *arg) c->nrecv++; nng_aio_set_msg(c->send_aio, nng_aio_get_msg(c->recv_aio)); nng_aio_set_msg(c->recv_aio, NULL); - nng_send_aio(c->socket, c->send_aio); + nng_socket_send(c->socket, c->send_aio); } static void @@ -130,7 +130,7 @@ rep_send_cb(void *arg) return; } c->nsend++; - nng_recv_aio(c->socket, c->recv_aio); + nng_socket_recv(c->socket, c->recv_aio); } static void @@ -153,7 +153,7 @@ req_time_cb(void *arg) return; } nng_aio_set_msg(c->send_aio, msg); - nng_send_aio(c->socket, c->send_aio); + nng_socket_send(c->socket, c->send_aio); } static void @@ -196,7 +196,7 @@ req_send_cb(void *arg) return; } c->nsend++; - nng_recv_aio(c->socket, c->recv_aio); + nng_socket_recv(c->socket, c->recv_aio); } void @@ -224,7 +224,7 @@ reqrep_test(int ntests) fatal("nng_aio_alloc", rv); } - nng_recv_aio(srv->socket, srv->recv_aio); + nng_socket_recv(srv->socket, srv->recv_aio); for (i = 1; i < ntests; i++) { cli = &cases[curcase++]; -- cgit v1.2.3-70-g09d2