13 #ifndef __LIBWINIO_HPP__ 14 #define __LIBWINIO_HPP__ 41 const Duration& duration,
const lambda::function<
void()>& callback);
57 void operator()(
HANDLE h) { ::CloseHandle(h); }
60 std::unique_ptr<HANDLE, HandleDeleter> iocp_handle_;
80 const int_fd& fd,
const int_fd& file_fd, off_t offset,
size_t size);
85 #endif // __LIBWINIO_HPP__ Try< Bytes > size(const std::string &path, const FollowSymlink follow=FollowSymlink::FOLLOW_SYMLINK)
Definition: stat.hpp:130
Future< Nothing > accept(const int_fd &fd, const int_fd &accepted_socket)
Try< Nothing > registerHandle(const int_fd &fd)
Definition: address.hpp:324
Future< size_t > sendfile(const int_fd &fd, const int_fd &file_fd, off_t offset, size_t size)
Definition: sendfile.hpp:58
Future< size_t > recv(const int_fd &fd, void *buf, size_t size)
static Try< EventLoop * > create()
Definition: duration.hpp:32
Future< size_t > write(const int_fd &fd, const void *buf, size_t size)
Definition: write.hpp:72
Try< Nothing > launchTimer(const Duration &duration, const lambda::function< void()> &callback)
Future< size_t > read(const int_fd &fd, void *buf, size_t size)
Definition: read.hpp:83
constexpr Handle HANDLE
Definition: ingress.hpp:37
Definition: executor.hpp:48
network::inet::Address address()
Returns the socket address associated with this instance of the library.
Definition: libwinio.hpp:28
int int_fd
Definition: int_fd.hpp:35
Future< Nothing > connect(const int_fd &fd, const network::Address &address)
Future< size_t > send(const int_fd &fd, const void *buf, size_t size)