#include <netman_private.hh>
Public Member Functions | |
void | Reinit () |
Reinitialize members. | |
void | DoCallBacks () |
Call callbacks. | |
Public Attributes | |
ActiveBackup< Connections > | mConnections |
2 instances of connections | |
AbsMsecTime | mMinStopTime |
min stop time for poll() operation (absolute time) | |
Static Public Attributes | |
static const AbsMsecTime | MIN_TIME_UNINITIALIZED = std::numeric_limits<AbsMsecTime>::max() |
value uninitialized | |
static const AbsMsecTime | MIN_TIME_IMMEDIATE = 0 |
value 0 so poll() won't block |
void nnl::Netman::Impl::DoCallBacks | ( | ) | [inline] |
Call callbacks.
Callbacks are set by the sockets which managed to send their data immediately, without using poll(). Now they are only notified.
void nnl::Netman::Impl::Reinit | ( | ) | [inline] |
Reinitialize members.
Called from Netman when all events are served.
It traverses the connection container for all the elements remaining. These elements did not have an event but did not time out yet so we need to serve them again.
We need to copy them to mPollFds so the order of mPollFds and mConnections remain the same (and we don't have to use map<> or similar container).