From 7acc29013636d2ddc004acebe02d88722fe0c8db Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 25 Dec 2016 09:29:16 -0800 Subject: Expose and implement pipe operations. (nng_pipe_close, nng_pipe_getopt). --- src/nng.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/nng.c') 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) -- cgit v1.2.3-70-g09d2