aboutsummaryrefslogtreecommitdiff
path: root/src/transport/ipc
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/transport/ipc
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/transport/ipc')
-rw-r--r--src/transport/ipc/ipc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/transport/ipc/ipc.c b/src/transport/ipc/ipc.c
index 62751d86..9e8a3829 100644
--- a/src/transport/ipc/ipc.c
+++ b/src/transport/ipc/ipc.c
@@ -233,7 +233,7 @@ nni_ipc_pipe_send_cb(void *arg)
NNI_ASSERT(txaio->a_niov != 0);
if (txaio->a_iov[0].iov_len > n) {
txaio->a_iov[0].iov_len -= n;
- txaio->a_iov[0].iov_buf += n;
+ NNI_INCPTR(txaio->a_iov[0].iov_buf, n);
break;
}
n -= txaio->a_iov[0].iov_len;
@@ -285,7 +285,7 @@ nni_ipc_pipe_recv_cb(void *arg)
NNI_ASSERT(rxaio->a_niov != 0);
if (rxaio->a_iov[0].iov_len > n) {
rxaio->a_iov[0].iov_len -= n;
- rxaio->a_iov[0].iov_buf += n;
+ NNI_INCPTR(rxaio->a_iov[0].iov_buf, n);
break;
}
n -= rxaio->a_iov[0].iov_len;