public class PollFD extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PollFD.PollEvent
Event Enum constants for poll call
|
| Constructor and Description |
|---|
PollFD(int fd,
EnumSet<PollFD.PollEvent> events)
Construct a new pollfd.
|
| Modifier and Type | Method and Description |
|---|---|
EnumSet<PollFD.PollEvent> |
getEvents()
Returns the events that this poller polls the file descriptor about.
|
int |
getFd() |
EnumSet<PollFD.PollEvent> |
getREvents()
Returns the events that this poll was notified about.
|
boolean |
test(PollFD.PollEvent event)
Check if the poller is positive for a given event.
|
public PollFD(int fd,
EnumSet<PollFD.PollEvent> events)
fd - the file descriptorevents - the events we would like to poll the file descriptor aboutpublic int getFd()
public EnumSet<PollFD.PollEvent> getEvents()
public EnumSet<PollFD.PollEvent> getREvents()
public boolean test(PollFD.PollEvent event)
Copyright © 2024. All rights reserved.