From 5914e40c2ff7fcf346c90705785f3fb7650a9fdc Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Mon, 29 Jan 2018 13:27:52 -0800 Subject: Expose scatter/gather I/O vectors; we will use for HTTP API. --- src/nng.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/nng.c') 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) -- cgit v1.2.3-70-g09d2