diff options
| author | Garrett D'Amore <garrett@damore.org> | 2018-01-29 13:27:52 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2018-01-29 13:27:52 -0800 |
| commit | 5914e40c2ff7fcf346c90705785f3fb7650a9fdc (patch) | |
| tree | d769f4110a76679df0ffcf2b4e953bb9b9f3687d /src/supplemental | |
| parent | e32022c8085fc6b05ed690f9b4b49536d8df13b1 (diff) | |
| download | nng-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/supplemental')
| -rw-r--r-- | src/supplemental/http/http.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/supplemental/http/http.c b/src/supplemental/http/http.c index 43db1d15..2ba5b274 100644 --- a/src/supplemental/http/http.c +++ b/src/supplemental/http/http.c @@ -145,7 +145,7 @@ http_rd_buf(nni_http *http, nni_aio *aio) } memcpy(aio->a_iov[0].iov_buf, rbuf, n); aio->a_iov[0].iov_len -= n; - aio->a_iov[0].iov_buf += n; + NNI_INCPTR(aio->a_iov[0].iov_buf, n); http->rd_get += n; rbuf += n; aio->a_count += n; @@ -302,7 +302,7 @@ http_rd_cb(void *arg) n = cnt; } uaio->a_iov[0].iov_len -= n; - uaio->a_iov[0].iov_buf += n; + NNI_INCPTR(uaio->a_iov[0].iov_buf, n); uaio->a_count += n; cnt -= n; @@ -420,7 +420,7 @@ http_wr_cb(void *arg) if (aio->a_iov[0].iov_len > n) { aio->a_iov[0].iov_len -= n; - aio->a_iov[0].iov_buf += n; + NNI_INCPTR(aio->a_iov[0].iov_buf, n); break; } n -= aio->a_iov[0].iov_len; |
