|
rippled
|
Manages the count of available connections for the various slots. More...

Public Member Functions | |
| Counts () | |
| void | add (Slot const &s) |
| Adds the slot state and properties to the slot counts. More... | |
| void | remove (Slot const &s) |
| Removes the slot state and properties from the slot counts. More... | |
| bool | can_activate (Slot const &s) const |
Returns true if the slot can become active. More... | |
| std::size_t | attempts_needed () const |
| Returns the number of attempts needed to bring us to the max. More... | |
| std::size_t | attempts () const |
| Returns the number of outbound connection attempts. More... | |
| int | out_max () const |
| Returns the total number of outbound slots. More... | |
| int | out_active () const |
| Returns the number of outbound peers assigned an open slot. More... | |
| std::size_t | fixed () const |
| Returns the number of fixed connections. More... | |
| std::size_t | fixed_active () const |
| Returns the number of active fixed connections. More... | |
| void | onConfig (Config const &config) |
| Called when the config is set or changed. More... | |
| int | acceptCount () const |
| Returns the number of accepted connections that haven't handshaked. More... | |
| int | connectCount () const |
| Returns the number of connection attempts currently active. More... | |
| int | closingCount () const |
| Returns the number of connections that are gracefully closing. More... | |
| int | inboundSlots () const |
| Returns the total number of inbound slots. More... | |
| int | inboundActive () const |
| Returns the number of inbound peers assigned an open slot. More... | |
| int | totalActive () const |
| Returns the total number of active peers excluding fixed peers. More... | |
| int | inboundSlotsFree () const |
| Returns the number of unused inbound slots. More... | |
| int | outboundSlotsFree () const |
| Returns the number of unused outbound slots. More... | |
| bool | isConnectedToNetwork () const |
| Returns true if the slot logic considers us "connected" to the network. More... | |
| void | onWrite (beast::PropertyStream::Map &map) |
| Output statistics. More... | |
| std::string | state_string () const |
| Records the state for diagnostics. More... | |
Private Member Functions | |
| void | adjust (Slot const &s, int const n) |
Private Attributes | |
| int | m_attempts |
| Outbound connection attempts. More... | |
| std::size_t | m_active |
| Active connections, including fixed and reserved. More... | |
| std::size_t | m_in_max |
| Total number of inbound slots. More... | |
| std::size_t | m_in_active |
| Number of inbound slots assigned to active peers. More... | |
| std::size_t | m_out_max |
| Maximum desired outbound slots. More... | |
| std::size_t | m_out_active |
| Active outbound slots. More... | |
| std::size_t | m_fixed |
| Fixed connections. More... | |
| std::size_t | m_fixed_active |
| Active fixed connections. More... | |
| std::size_t | m_reserved |
| Reserved connections. More... | |
| int | m_acceptCount |
| int | m_closingCount |
Manages the count of available connections for the various slots.
| void ripple::PeerFinder::Counts::add | ( | Slot const & | s | ) |
| void ripple::PeerFinder::Counts::remove | ( | Slot const & | s | ) |
| bool ripple::PeerFinder::Counts::can_activate | ( | Slot const & | s | ) | const |
| std::size_t ripple::PeerFinder::Counts::attempts_needed | ( | ) | const |
| std::size_t ripple::PeerFinder::Counts::attempts | ( | ) | const |
| int ripple::PeerFinder::Counts::out_max | ( | ) | const |
| int ripple::PeerFinder::Counts::out_active | ( | ) | const |
| std::size_t ripple::PeerFinder::Counts::fixed | ( | ) | const |
| std::size_t ripple::PeerFinder::Counts::fixed_active | ( | ) | const |
| void ripple::PeerFinder::Counts::onConfig | ( | Config const & | config | ) |
| int ripple::PeerFinder::Counts::acceptCount | ( | ) | const |
| int ripple::PeerFinder::Counts::connectCount | ( | ) | const |
| int ripple::PeerFinder::Counts::closingCount | ( | ) | const |
| int ripple::PeerFinder::Counts::inboundSlots | ( | ) | const |
| int ripple::PeerFinder::Counts::inboundActive | ( | ) | const |
| int ripple::PeerFinder::Counts::totalActive | ( | ) | const |
| int ripple::PeerFinder::Counts::inboundSlotsFree | ( | ) | const |
| int ripple::PeerFinder::Counts::outboundSlotsFree | ( | ) | const |
| bool ripple::PeerFinder::Counts::isConnectedToNetwork | ( | ) | const |
| void ripple::PeerFinder::Counts::onWrite | ( | beast::PropertyStream::Map & | map | ) |
| std::string ripple::PeerFinder::Counts::state_string | ( | ) | const |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
1.8.17