| 
    rippled
    
   | 
 
Manages the count of available connections for the various slots. More...
#include <Counts.h>

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