aboutsummaryrefslogtreecommitdiff
path: root/src/sp
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2024-12-11 07:31:50 -0800
committerGarrett D'Amore <garrett@damore.org>2024-12-11 07:31:50 -0800
commit3b663bb405f603305c12c1dbcf0dba561b7e620b (patch)
tree9e4b388298872ad49624a421cd0048c875df7fc6 /src/sp
parent47eed71eee292ea5fafd140b4364ce4c509a1a1d (diff)
downloadnng-3b663bb405f603305c12c1dbcf0dba561b7e620b.tar.gz
nng-3b663bb405f603305c12c1dbcf0dba561b7e620b.tar.bz2
nng-3b663bb405f603305c12c1dbcf0dba561b7e620b.zip
inproc: implement stub ep stop
Inproc doesn't have any real need for action here, as it's simple, but the stub implementation will let us remove the check in the common code layer.
Diffstat (limited to 'src/sp')
-rw-r--r--src/sp/transport/inproc/inproc.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/sp/transport/inproc/inproc.c b/src/sp/transport/inproc/inproc.c
index f8cdd2e6..373b9c87 100644
--- a/src/sp/transport/inproc/inproc.c
+++ b/src/sp/transport/inproc/inproc.c
@@ -335,6 +335,12 @@ inproc_listener_init(void **epp, nng_url *url, nni_listener *nlistener)
}
static void
+inproc_ep_stop(void *arg)
+{
+ NNI_ARG_UNUSED(arg);
+}
+
+static void
inproc_ep_fini(void *arg)
{
inproc_ep *ep = arg;
@@ -669,6 +675,7 @@ static nni_sp_dialer_ops inproc_dialer_ops = {
.d_fini = inproc_ep_fini,
.d_connect = inproc_ep_connect,
.d_close = inproc_ep_close,
+ .d_stop = inproc_ep_stop,
.d_getopt = inproc_ep_getopt,
.d_setopt = inproc_ep_setopt,
};
@@ -679,6 +686,7 @@ static nni_sp_listener_ops inproc_listener_ops = {
.l_bind = inproc_ep_bind,
.l_accept = inproc_ep_accept,
.l_close = inproc_ep_close,
+ .l_stop = inproc_ep_stop,
.l_getopt = inproc_ep_getopt,
.l_setopt = inproc_ep_setopt,
};