#include #include #include #include ssize_t ngx_sendv(ngx_socket_t s, ngx_iovec_t *iovec, int n, size_t *sent) { ssize_t rc; rc = writev(s, iovec, n); if (rc == -1) return NGX_ERROR; *sent = rc; return NGX_OK; }