|
Zth (libzth)
|
A PollerServer that uses zmq_poll().
More...
#include <poller.h>
Public Types | |
| typedef PollerServer< zmq_pollitem_t > | base |
Public Types inherited from zth::PollerServer< zmq_pollitem_t > | |
| typedef PollerServerBase | base |
| typedef PollerClientBase | Client |
Public Types inherited from zth::PollerServerBase | |
| typedef PollerClientBase | Client |
Public Member Functions | |
| ZmqPoller () | |
| virtual | ~ZmqPoller () override |
Public Member Functions inherited from zth::PollerServer< zmq_pollitem_t > | |
| PollerServer ()=default | |
| Ctor. More... | |
| PollerServer (PollerServer const &)=delete | |
| PollerServer (PollerServer &&p)=delete | |
| void | operator= (PollerServer const &)=delete |
| void | operator= (PollerServer &&p)=delete |
| virtual | ~PollerServer () override |
| virtual int | migrateTo (PollerServerBase &p) noexcept override |
| Move all registered Pollables to another server. More... | |
| virtual void | reserve (size_t more) override |
| Reserve memory to add more pollables. More... | |
| int | add (Pollable &p, Client *client) noexcept final |
| Add a Pollable, that belongs to a given client. More... | |
| int | add (Pollable &p) noexcept final |
| Add a pollable object. More... | |
| int | remove (Pollable &p, Client *client) noexcept final |
| Remove the given Pollable, belonging to the given client. More... | |
| void | remove (size_t last) noexcept |
| Remove the last added Pollables. More... | |
| int | remove (Pollable &p) noexcept final |
| Remove a pollable object. More... | |
| void | clear () noexcept |
| Clear all Pollables. More... | |
| bool | empty () const noexcept final |
| Checks if there is any pollable registered. More... | |
| virtual int | poll (int timeout_ms) noexcept override |
| Poll. More... | |
Public Member Functions inherited from zth::PollerServerBase | |
| virtual | ~PollerServerBase () override=default |
Public Member Functions inherited from zth::PollerInterface | |
| virtual | ~PollerInterface ()=default |
| Dtor. More... | |
| int | add (std::initializer_list< std::reference_wrapper< Pollable >> l) noexcept |
| Add pollable objects. More... | |
Public Member Functions inherited from zth::UniqueID< PollerInterface > | |
| UniqueID (UniqueID const &)=delete | |
| UniqueID (UniqueID &&u) noexcept | |
| UniqueID (string const &name) | |
| UniqueID (string &&name) | |
| UniqueID (char const *name=nullptr) | |
| UniqueID & | operator= (UniqueID const &)=delete |
| UniqueID & | operator= (UniqueID &&u) noexcept |
| virtual | ~UniqueID ()=default |
| void const * | normptr () const noexcept |
| uint64_t | id () const noexcept |
| string const & | name () const noexcept |
| void | setName (string const &name) |
| void | setName (char const *name) |
| void | setName (string &&name) |
| virtual char const * | id_str () const override |
Additional Inherited Members | |
Static Public Member Functions inherited from zth::UniqueID< PollerInterface > | |
| static uint64_t | getID () noexcept |
Protected Types inherited from zth::PollerServer< zmq_pollitem_t > | |
| typedef zmq_pollitem_t | PollItem |
| typedef small_vector< PollItem, 4 > | PollItemList |
| Type of list of poll things. More... | |
Protected Member Functions inherited from zth::PollerServer< zmq_pollitem_t > | |
| void | event (Pollable::Events revents, size_t index) noexcept |
Register an revents for the PollItem at the given index. More... | |
Protected Member Functions inherited from zth::UniqueIDBase | |
| virtual | ~UniqueIDBase ()=default |
A PollerServer that uses zmq_poll().
| typedef PollerServer<zmq_pollitem_t> zth::ZmqPoller::base |
| zth::ZmqPoller::ZmqPoller | ( | ) |
Definition at line 59 of file poller.cpp.
|
overridevirtualdefault |