I/O vector for scatter-gather I/O. More...
#include <su.h>
Data Fields | |
| void * | siv_base |
| Pointer to buffer. | |
| su_ioveclen_t | siv_len |
| Size of buffer. | |
I/O vector for scatter-gather I/O.
This is the I/O vector element used with su_vsend() and su_vrecv(). It is defined like struct iovec with POSIX sockets:
struct iovec { void *iov_base; // Pointer to data. size_t iov_len; // Length of data. };
When using WINSOCK sockets it is defined as WSABUF:
typedef struct __WSABUF { u_long len; char FAR* buf; } WSABUF, *LPWSABUF;
For historical reasons, the structure is known as msg_iovec_t in msg module.
struct iovec defined in <sys/uio.h>, writev(2), readv(2), sendmsg(), recvmsg(), WSABUF of WinSock2 | void* siv_base |
Pointer to buffer.
Size of buffer.