mirror of
https://github.com/nginx/nginx.git
synced 2024-12-17 06:57:47 +08:00
15 lines
239 B
C
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;
|
||
|
}
|