99 using Peers = std::vector<Peer>;
Adapted from code found on http://stackoverflow.com/questions/180947/base64-decode-snippet-in-c Origi...
std::chrono::system_clock::time_point m_lastConnected
Network Availability.
The Host class Capabilities should be registered prior to startNetwork, since m_capabilities is not t...
Peer(Node const &_node)
Construct Peer from Node.
std::weak_ptr< Session > m_session
Used by isOffline() and (todo) for peer to emit session information.
unsigned m_failedAttempts
int rating() const
WIP: Returns current peer rating.
std::vector< Peer > Peers
int failedAttempts() const
Number of times connection has been attempted to peer.
DisconnectReason lastDisconnect() const
Reason peer was previously disconnected.
int m_score
All time cumulative.
virtual bool operator<(Peer const &_p) const
std::chrono::system_clock::time_point m_lastAttempted
DisconnectReason m_lastDisconnect
Reason for disconnect that happened last.
clock::time_point time_point
Representation of connectivity state and all other pertinent Peer metadata.
bool shouldReconnect() const
Return true if connection attempt should be made to this peer or false if.
void noteSessionGood()
Peer session is noted as useful.
unsigned fallbackSeconds() const
Returns number of seconds to wait until attempting connection, based on attempted connection history...
Setup inbound or outbound connection for communication over RLPXFrameCoder.