aboutsummaryrefslogtreecommitdiff
path: root/src/nng.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2018-01-29 13:27:52 -0800
committerGarrett D'Amore <garrett@damore.org>2018-01-29 13:27:52 -0800
commit5914e40c2ff7fcf346c90705785f3fb7650a9fdc (patch)
treed769f4110a76679df0ffcf2b4e953bb9b9f3687d /src/nng.c
parente32022c8085fc6b05ed690f9b4b49536d8df13b1 (diff)
downloadnng-5914e40c2ff7fcf346c90705785f3fb7650a9fdc.tar.gz
nng-5914e40c2ff7fcf346c90705785f3fb7650a9fdc.tar.bz2
nng-5914e40c2ff7fcf346c90705785f3fb7650a9fdc.zip
Expose scatter/gather I/O vectors; we will use for HTTP API.
Diffstat (limited to 'src/nng.c')
-rw-r--r--src/nng.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nng.c b/src/nng.c
index addfc06a..e88b6d2c 100644
--- a/src/nng.c
+++ b/src/nng.c
@@ -1082,6 +1082,12 @@ nng_aio_set_timeout(nng_aio *ap, nng_duration dur)
nni_aio_set_timeout((nni_aio *) ap, dur);
}
+int
+nng_aio_set_iov(nng_aio *ap, int niov, nng_iov *iov)
+{
+ return (nni_aio_set_iov((nni_aio *) ap, niov, iov));
+}
+
#if 0
int
nng_snapshot_create(nng_socket sock, nng_snapshot **snapp)