Anklang C++ API 0.0.0
Loading...
Searching...
No Matches
PollFD

#include "loop.hh"

Public Types

enum : uint {
  IN , PRI , OUT , RDNORM ,
  RDBAND , WRNORM , WRBAND , ERR ,
  HUP , NVAL
}

Public Attributes

uint16events
intfd
uint16revents

Detailed Description

Mirrors struct pollfd for poll(3posix)

Member Enumeration Documentation

anonymous enum

anonymous enum : uint

Event types that can be polled for, set in .events, updated in .revents.

Enumerator
IN

RDNORM || RDBAND.

PRI

urgent data available

OUT

writing data will not block

RDNORM

reading data will not block

RDBAND

reading priority data will not block

WRNORM

writing data will not block

WRBAND

writing priority data will not block

ERR

error condition

HUP

file descriptor closed

NVAL

invalid PollFD

Member Data Documentation

fd

int fd

events

uint16 events

revents

uint16 revents