aboutsummaryrefslogtreecommitdiff
path: root/src/nng.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2018-02-01 16:48:20 -0800
committerGarrett D'Amore <garrett@damore.org>2018-02-01 20:07:09 -0800
commit5e5f814d63d4e00365b0ae726bc18831aa28e88f (patch)
tree804a930d4f9f941cd75e156f169a52e7110ef1e9 /src/nng.c
parent3dae30ed5e543dc73fc993334ef56b9b157b9b3c (diff)
downloadnng-5e5f814d63d4e00365b0ae726bc18831aa28e88f.tar.gz
nng-5e5f814d63d4e00365b0ae726bc18831aa28e88f.tar.bz2
nng-5e5f814d63d4e00365b0ae726bc18831aa28e88f.zip
fixes #174 Define public HTTP client API
Diffstat (limited to 'src/nng.c')
-rw-r--r--src/nng.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/nng.c b/src/nng.c
index 16de18d5..92d19d87 100644
--- a/src/nng.c
+++ b/src/nng.c
@@ -1100,6 +1100,27 @@ nng_aio_set_input(nng_aio *aio, unsigned index, void *arg)
nni_aio_set_input(aio, index, arg);
return (0);
}
+int
+nng_aio_set_output(nng_aio *aio, unsigned index, void *arg)
+{
+ if (index > 3) {
+ return (NNG_EINVAL);
+ }
+ nni_aio_set_output(aio, index, arg);
+ return (0);
+}
+
+void *
+nng_aio_get_input(nng_aio *aio, unsigned index)
+{
+ return (nni_aio_get_input(aio, index));
+}
+
+void *
+nng_aio_get_output(nng_aio *aio, unsigned index)
+{
+ return (nni_aio_get_output(aio, index));
+}
#if 0
int