Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | Public Attributes | List of all members
MockSession Class Reference
Inheritance diagram for MockSession:
[legend]
Collaboration diagram for MockSession:
[legend]

Public Member Functions

void start () override
 
void disconnect (DisconnectReason) override
 
void ping () override
 
bool isConnected () const override
 
NodeID id () const override
 
void sealAndSend (RLPStream &_s, uint16_t) override
 
int rating () const override
 
void addRating (int) override
 
void addNote (string const &_k, string const &_v) override
 
PeerSessionInfo info () const override
 
chrono::steady_clock::time_point connectionTime () override
 
void registerCapability (CapDesc const &, shared_ptr< Capability >) override
 
void registerFraming (uint16_t) override
 
map< CapDesc, shared_ptr< Capability > > const & capabilities () const override
 
shared_ptr< Peerpeer () const override
 
chrono::steady_clock::time_point lastReceived () const override
 
ReputationManagerrepMan () override
 
- Public Member Functions inherited from dev::p2p::SessionFace
virtual ~SessionFace ()
 
virtual void addNote (std::string const &_k, std::string const &_v)=0
 
virtual void registerCapability (CapDesc const &_desc, std::shared_ptr< Capability > _p)=0
 

Public Attributes

ReputationManager m_repMan
 
map< CapDesc, std::shared_ptr< Capability > > m_capabilities
 
bytes m_bytesSent
 
map< string, string > m_notes
 

Detailed Description

Definition at line 37 of file EthereumPeerTest.cpp.

Member Function Documentation

void MockSession::addNote ( string const &  _k,
string const &  _v 
)
inlineoverride

Definition at line 57 of file EthereumPeerTest.cpp.

void MockSession::addRating ( int  )
inlineoverridevirtual

Implements dev::p2p::SessionFace.

Definition at line 55 of file EthereumPeerTest.cpp.

map<CapDesc, shared_ptr<Capability> > const& MockSession::capabilities ( ) const
inlineoverridevirtual

Implements dev::p2p::SessionFace.

Definition at line 68 of file EthereumPeerTest.cpp.

chrono::steady_clock::time_point MockSession::connectionTime ( )
inlineoverridevirtual

Implements dev::p2p::SessionFace.

Definition at line 63 of file EthereumPeerTest.cpp.

void MockSession::disconnect ( DisconnectReason  )
inlineoverridevirtual

Implements dev::p2p::SessionFace.

Definition at line 41 of file EthereumPeerTest.cpp.

NodeID MockSession::id ( ) const
inlineoverridevirtual

Implements dev::p2p::SessionFace.

Definition at line 47 of file EthereumPeerTest.cpp.

PeerSessionInfo MockSession::info ( ) const
inlineoverridevirtual

Implements dev::p2p::SessionFace.

Definition at line 62 of file EthereumPeerTest.cpp.

bool MockSession::isConnected ( ) const
inlineoverridevirtual

Implements dev::p2p::SessionFace.

Definition at line 45 of file EthereumPeerTest.cpp.

chrono::steady_clock::time_point MockSession::lastReceived ( ) const
inlineoverridevirtual

Implements dev::p2p::SessionFace.

Definition at line 72 of file EthereumPeerTest.cpp.

shared_ptr<Peer> MockSession::peer ( ) const
inlineoverridevirtual

Implements dev::p2p::SessionFace.

Definition at line 70 of file EthereumPeerTest.cpp.

void MockSession::ping ( )
inlineoverridevirtual

Implements dev::p2p::SessionFace.

Definition at line 43 of file EthereumPeerTest.cpp.

int MockSession::rating ( ) const
inlineoverridevirtual

Implements dev::p2p::SessionFace.

Definition at line 54 of file EthereumPeerTest.cpp.

void MockSession::registerCapability ( CapDesc const &  ,
shared_ptr< Capability  
)
inlineoverride

Definition at line 65 of file EthereumPeerTest.cpp.

void MockSession::registerFraming ( uint16_t  )
inlineoverridevirtual

Implements dev::p2p::SessionFace.

Definition at line 66 of file EthereumPeerTest.cpp.

ReputationManager& MockSession::repMan ( )
inlineoverridevirtual

Implements dev::p2p::SessionFace.

Definition at line 74 of file EthereumPeerTest.cpp.

void MockSession::sealAndSend ( RLPStream _s,
uint16_t   
)
inlineoverridevirtual

Implements dev::p2p::SessionFace.

Definition at line 49 of file EthereumPeerTest.cpp.

Here is the call graph for this function:

void MockSession::start ( )
inlineoverridevirtual

Implements dev::p2p::SessionFace.

Definition at line 40 of file EthereumPeerTest.cpp.

Member Data Documentation

bytes MockSession::m_bytesSent

Definition at line 78 of file EthereumPeerTest.cpp.

map<CapDesc, std::shared_ptr<Capability> > MockSession::m_capabilities

Definition at line 77 of file EthereumPeerTest.cpp.

map<string, string> MockSession::m_notes

Definition at line 79 of file EthereumPeerTest.cpp.

ReputationManager MockSession::m_repMan

Definition at line 76 of file EthereumPeerTest.cpp.


The documentation for this class was generated from the following file: