ares_writev.h
Go to the documentation of this file.
1 #ifndef HEADER_CARES_WRITEV_H
2 #define HEADER_CARES_WRITEV_H
3 
4 
5 /* Copyright 1998 by the Massachusetts Institute of Technology.
6  *
7  * Permission to use, copy, modify, and distribute this
8  * software and its documentation for any purpose and without
9  * fee is hereby granted, provided that the above copyright
10  * notice appear in all copies and that both that copyright
11  * notice and this permission notice appear in supporting
12  * documentation, and that the name of M.I.T. not be used in
13  * advertising or publicity pertaining to distribution of the
14  * software without specific, written prior permission.
15  * M.I.T. makes no representations about the suitability of
16  * this software for any purpose. It is provided "as is"
17  * without express or implied warranty.
18  */
19 
20 #include "ares_setup.h"
21 #include "ares.h"
22 
23 #ifndef HAVE_WRITEV
24 
25 /* Structure for scatter/gather I/O. */
26 struct iovec
27 {
28  void *iov_base; /* Pointer to data. */
29  size_t iov_len; /* Length of data. */
30 };
31 
32 extern ares_ssize_t ares_writev(ares_socket_t s, const struct iovec *iov, int iovcnt);
33 
34 #endif
35 
36 #endif /* HEADER_CARES_WRITEV_H */
ares.h
iov
static uv_buf_t iov
Definition: libuv/docs/code/uvcat/main.c:15
ares_writev
ares_ssize_t ares_writev(ares_socket_t s, const struct iovec *iov, int iovcnt)
Definition: ares_writev.c:28
ares_setup.h
iovec
Definition: gsec.h:33
iovec::iov_len
size_t iov_len
Definition: gsec.h:35
ares_socket_t
int ares_socket_t
Definition: ares.h:229
iovec::iov_base
void * iov_base
Definition: gsec.h:34
ares_ssize_t
CARES_TYPEOF_ARES_SSIZE_T ares_ssize_t
Definition: ares_build.h:210


grpc
Author(s):
autogenerated on Thu Mar 13 2025 02:58:33