1#ifndef UVW_POLL_INCLUDE_H
2#define UVW_POLL_INCLUDE_H
16enum class uvw_poll_event : std::underlying_type_t<uv_poll_event> {
17 READABLE = UV_READABLE,
18 WRITABLE = UV_WRITABLE,
19 DISCONNECT = UV_DISCONNECT,
20 PRIORITIZED = UV_PRIORITIZED,
28 explicit poll_event(details::uvw_poll_event events)
noexcept;
60 static void start_callback(uv_poll_t *hndl,
int status,
int events);
63 using poll_event_flags = details::uvw_poll_event;
65 explicit poll_handle(loop::token token, std::shared_ptr<loop> ref,
int desc);
93 int start(poll_event_flags flags);
int start(poll_event_flags flags)
Starts polling the file descriptor.
int init() final
Initializes the handle.
int stop()
Stops polling the file descriptor.
details::uv_type_wrapper< uv_os_sock_t > os_socket_handle
details::uvw_poll_event flags
Detected events all in one.