1#ifndef UVW_POLL_INCLUDE_H
2#define UVW_POLL_INCLUDE_H
14enum class UVPollEvent : std::underlying_type_t<uv_poll_event> {
15 READABLE = UV_READABLE,
16 WRITABLE = UV_WRITABLE,
17 DISCONNECT = UV_DISCONNECT,
18 PRIORITIZED = UV_PRIORITIZED
61 static void startCallback(uv_poll_t *handle,
int status,
int events);
64 using Event = details::UVPollEvent;
66 explicit PollHandle(ConstructorAccess ca, std::shared_ptr<Loop> ref,
int desc);
130 OSSocketHandle::Type socket;
Utility class to handle flags.
void start(Event event)
Starts polling the file descriptor.
void stop()
Stops polling the file descriptor.
bool init()
Initializes the handle.
void start(Flags< Event > flags)
Starts polling the file descriptor.
details::UVTypeWrapper< uv_os_sock_t > OSSocketHandle
Flags< details::UVPollEvent > flags
Detected events all in one.