|
qb
2.0.0.0
C++17 Actor Framework
|
Base class for epoll operations. More...
#include <epoll.h>

Public Types | |
| using | item_type = epoll_event |
| Type alias for epoll event item. | |
Public Member Functions | |
| Proxy ()=default | |
| Default constructor. | |
| Proxy (const int epoll) | |
| Constructor. | |
| Proxy (Proxy const &)=default | |
| Copy constructor. | |
| int | ctl (item_type &item) const |
| Modify an existing file descriptor in the epoll set. | |
| int | add (item_type &item) const |
| Add a new file descriptor to the epoll set. | |
| int | remove (item_type const &item) |
| Remove a file descriptor from the epoll set. | |
Protected Attributes | |
| int | _epoll |
| The epoll file descriptor. | |
Base class for epoll operations.
This class provides basic operations for managing epoll file descriptors and controlling the monitored file descriptors.
|
inline |
Constructor.
| epoll | An existing epoll file descriptor |
|
inline |
Modify an existing file descriptor in the epoll set.
| item | The epoll event item to modify |
|
inline |
Add a new file descriptor to the epoll set.
| item | The epoll event item to add |
|
inline |
Remove a file descriptor from the epoll set.
| item | The epoll event item to remove |