#include <ping_service.h>
|
| | PingService (std::chrono::milliseconds interval=std::chrono::seconds(10)) |
| |
| | ~PingService () override |
| |
| void | attach (NodeContext &ctx) override |
| |
| void | start () override |
| |
| void | stop () override |
| |
| std::optional< std::chrono::milliseconds > | last_rtt (const PeerId &id) const |
| | Most recent measured round-trip time to a peer, if one has been seen.
|
| |
| size_t | alive_peer_count () const |
| | Number of peers we have received at least one pong from.
|
| |
| virtual | ~Subsystem ()=default |
| |
Definition at line 33 of file ping_service.h.
◆ PingService()
| librats::PingService::PingService |
( |
std::chrono::milliseconds |
interval = std::chrono::seconds(10) | ) |
|
|
explicit |
◆ ~PingService()
| librats::PingService::~PingService |
( |
| ) |
|
|
override |
◆ alive_peer_count()
| size_t librats::PingService::alive_peer_count |
( |
| ) |
const |
Number of peers we have received at least one pong from.
◆ attach()
◆ last_rtt()
| std::optional< std::chrono::milliseconds > librats::PingService::last_rtt |
( |
const PeerId & |
id | ) |
const |
Most recent measured round-trip time to a peer, if one has been seen.
◆ start()
| void librats::PingService::start |
( |
| ) |
|
|
overridevirtual |
◆ stop()
| void librats::PingService::stop |
( |
| ) |
|
|
overridevirtual |
The documentation for this class was generated from the following file: