13 #ifndef __STOUT_OS_WINDOWS_SENDFILE_HPP__
14 #define __STOUT_OS_WINDOWS_SENDFILE_HPP__
34 uint64_t offset_ = offset;
39 {
static_cast<DWORD
>(offset_), static_cast<DWORD>(offset_ >> 32)},
42 CHECK_LE(length, MAXDWORD);
46 static_cast<DWORD>(length),
51 (WSAGetLastError() == WSA_IO_PENDING ||
52 WSAGetLastError() == ERROR_IO_PENDING)) {
56 if (WSAGetOverlappedResult(s, &from, &sent, TRUE, &flags) == TRUE) {
66 #endif // __STOUT_OS_WINDOWS_SENDFILE_HPP__
ErrnoError SocketError
Definition: error.hpp:33
#define flags
Definition: decoder.hpp:18
Try< ssize_t, SocketError > sendfile(int s, int fd, off_t offset, size_t length)
Definition: sendfile.hpp:42