E-MailRelay
|
Handles read events on a routing netlink socket. More...
Public Member Functions | |
InterfacesNotifierImp (Interfaces *, ExceptionSink es) | |
std::string | readEvent () override |
Called by GNet::Interfaces to handle a read event. More... | |
std::string | onFutureEvent () override |
Called by GNet::Interfaces to handle a future event. More... | |
template<typename T > | |
std::pair< T *, std::size_t > | readSocket () |
![]() | |
virtual std::string | readEvent ()=0 |
Called by GNet::Interfaces to handle a read event. More... | |
virtual std::string | onFutureEvent ()=0 |
Called by GNet::Interfaces to handle a future event. More... | |
virtual | ~InterfacesNotifier ()=default |
Destructor. | |
Static Public Member Functions | |
static bool | active () |
Public Attributes | |
G::Buffer< char > | m_buffer |
std::unique_ptr< RawSocket > | m_socket |
Handles read events on a routing netlink socket.
Definition at line 56 of file ginterfaces_unix.cpp.
GNet::InterfacesNotifierImp::InterfacesNotifierImp | ( | Interfaces * | , |
ExceptionSink | es | ||
) |
Definition at line 287 of file ginterfaces_unix.cpp.
|
static |
Definition at line 282 of file ginterfaces_unix.cpp.
|
overridevirtual |
Called by GNet::Interfaces to handle a future event.
Returns a diagnostic representation of the event or the empty string.
Implements GNet::InterfacesNotifier.
Definition at line 151 of file ginterfaces_unix.cpp.
|
overridevirtual |
Called by GNet::Interfaces to handle a read event.
Returns a diagnostic representation of the event or the empty string.
Implements GNet::InterfacesNotifier.
Definition at line 291 of file ginterfaces_unix.cpp.
std::pair< T *, std::size_t > GNet::InterfacesNotifierImp::readSocket |
Definition at line 134 of file ginterfaces_unix.cpp.
G::Buffer<char> GNet::InterfacesNotifierImp::m_buffer |
Definition at line 66 of file ginterfaces_unix.cpp.
std::unique_ptr<RawSocket> GNet::InterfacesNotifierImp::m_socket |
Definition at line 67 of file ginterfaces_unix.cpp.