rippled
|
Abstract class. More...
Public Member Functions | |
virtual | ~SquelchHandler () |
virtual void | squelch (PublicKey const &validator, Peer::id_t id, std::uint32_t duration) const =0 |
Squelch handler. More... | |
virtual void | unsquelch (PublicKey const &validator, Peer::id_t id) const =0 |
Unsquelch handler. More... | |
Abstract class.
Declares squelch and unsquelch handlers. OverlayImpl inherits from this class. Motivation is for easier unit tests to facilitate on the fly changing callbacks.
Definition at line 71 of file overlay/Slot.h.
|
virtual |
Definition at line 74 of file overlay/Slot.h.
|
pure virtual |
Squelch handler.
validator | Public key of the source validator |
id | Peer's id to squelch |
duration | Squelch duration in seconds |
Implemented in ripple::test::OverlaySim, ripple::OverlayImpl, and ripple::test::reduce_relay_test::Handler.
|
pure virtual |
Unsquelch handler.
validator | Public key of the source validator |
id | Peer's id to unsquelch |
Implemented in ripple::test::OverlaySim, ripple::OverlayImpl, and ripple::test::reduce_relay_test::Handler.