Mercurial > hg > nginx-quic
comparison src/os/unix/ngx_sendv.c @ 0:4eff17414a43
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.
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 06 Aug 2002 16:39:45 +0000 |
parents | |
children | 34a521b1a148 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4eff17414a43 |
---|---|
1 | |
2 #include <ngx_types.h> | |
3 #include <ngx_sendv.h> | |
4 | |
5 ssize_t ngx_sendv(ngx_socket_t s, ngx_iovec_t *iovec, int n, size_t *sent) | |
6 { | |
7 ssize_t rc = writev(s, iovec, n); | |
8 | |
9 if (rc == -1) | |
10 return -1; | |
11 | |
12 *sent = rc; | |
13 return 0; | |
14 } |