Zth (libzth)
|
A pollable file descriptor. More...
#include <poller.h>
Public Member Functions | |
constexpr | PollableFd (int fd, Events const &e, void *user=nullptr) noexcept |
Ctor for a file descriptor. More... | |
constexpr | PollableFd (void *socket, Events const &e, void *user=nullptr) noexcept |
Ctor for a ZeroMQ socket. More... | |
Public Member Functions inherited from zth::Pollable | |
constexpr | Pollable (Events const &e, void *user=nullptr) noexcept |
Ctor. More... | |
Public Attributes | |
void * | socket |
The ZeroMQ socket. More... | |
int | fd |
The file descriptor. More... | |
Public Attributes inherited from zth::Pollable | |
void * | user_data |
User data. More... | |
Events | events |
Events to poll. More... | |
Events | revents |
Returned events by a poll. More... | |
Additional Inherited Members | |
Public Types inherited from zth::Pollable | |
enum | EventsFlags { PollInIndex , PollOutIndex , PollErrIndex , PollPriIndex , PollHupIndex , FlagCount } |
Flags to be used with events and revents. More... | |
typedef std::bitset< FlagCount > | Events |
Type of events and revents. More... | |
Static Public Attributes inherited from zth::Pollable | |
static const unsigned long | PollIn = 1UL << PollInIndex |
static const unsigned long | PollOut = 1UL << PollOutIndex |
static const unsigned long | PollErr = 1UL << PollErrIndex |
static const unsigned long | PollPri = 1UL << PollPriIndex |
static const unsigned long | PollHup = 1UL << PollHupIndex |
A pollable file descriptor.
In Windows, the fd must be either a WSA2 or ZeroMQ socket.
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
int zth::PollableFd::fd |
void* zth::PollableFd::socket |