aboutsummaryrefslogtreecommitdiff
path: root/src/nng.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2016-12-25 09:29:16 -0800
committerGarrett D'Amore <garrett@damore.org>2016-12-25 09:29:16 -0800
commit7acc29013636d2ddc004acebe02d88722fe0c8db (patch)
treea211c99284a165e3eb6f9d5f4fb71480e4873f7c /src/nng.c
parent147d8408f577678331daf1cd06ae9aac6c231dab (diff)
downloadnng-7acc29013636d2ddc004acebe02d88722fe0c8db.tar.gz
nng-7acc29013636d2ddc004acebe02d88722fe0c8db.tar.bz2
nng-7acc29013636d2ddc004acebe02d88722fe0c8db.zip
Expose and implement pipe operations. (nng_pipe_close, nng_pipe_getopt).
Diffstat (limited to 'src/nng.c')
-rw-r--r--src/nng.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/nng.c b/src/nng.c
index 4949dfe1..d5ebe607 100644
--- a/src/nng.c
+++ b/src/nng.c
@@ -155,6 +155,23 @@ nng_strerror(int num)
}
+int
+nng_pipe_getopt(nng_pipe *pipe, int opt, void *val, size_t *sizep)
+{
+ NNI_INIT_INT();
+ return (nni_pipe_getopt(pipe, opt, val, sizep));
+}
+
+
+int
+nng_pipe_close(nng_pipe *pipe)
+{
+ NNI_INIT_INT();
+ nni_pipe_close(pipe);
+ return (0);
+}
+
+
// Message handling.
int
nng_msg_alloc(nng_msg **msgp, size_t size)