1 #ifndef UVW_POLL_INCLUDE_H
2 #define UVW_POLL_INCLUDE_H
18 enum class UVPollEvent: std::underlying_type_t<uv_poll_event> {
19 READABLE = UV_READABLE,
20 WRITABLE = UV_WRITABLE,
21 DISCONNECT = UV_DISCONNECT,
22 PRIORITIZED = UV_PRIORITIZED
68 static void startCallback(uv_poll_t *handle,
int status,
int events);
71 using Event = details::UVPollEvent;
73 explicit PollHandle(ConstructorAccess ca, std::shared_ptr<Loop> ref,
int desc);
130 enum { FD, SOCKET } tag;
133 OSSocketHandle::Type socket;
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.