nginx/src/os/unix/ngx_sendv.c
Igor Sysoev 6de5c2cb63 nginx-0.0.1-2002-08-06-20:39:45 import
The first code that uses "ngx_" prefix, the previous one used "gx_" prefix.
At that point the code is not yet usable.  The first draft ideas are dated
back to 23.10.2001.
2002-08-06 16:39:45 +00:00

15 lines
239 B
C

#include <ngx_types.h>
#include <ngx_sendv.h>
ssize_t ngx_sendv(ngx_socket_t s, ngx_iovec_t *iovec, int n, size_t *sent)
{
ssize_t rc = writev(s, iovec, n);
if (rc == -1)
return -1;
*sent = rc;
return 0;
}