|
| | TestNodeTable (ba::io_service &_io, KeyPair _alias, bi::address const &_addr, uint16_t _port=30300) |
| | Constructor. More...
|
| |
| void | pingTestNodes (std::vector< std::pair< KeyPair, unsigned >> const &_testNodes) |
| |
| void | populateTestNodes (std::vector< std::pair< KeyPair, unsigned >> const &_testNodes, size_t _count=0) |
| |
| void | reset () |
| |
| | NodeTable (ba::io_service &_io, KeyPair const &_alias, NodeIPEndpoint const &_endpoint, bool _enabled=true) |
| | Constructor requiring host for I/O, credentials, and IP Address and port to listen on. More...
|
| |
| | ~NodeTable () |
| |
| void | setEventHandler (NodeTableEventHandler *_handler) |
| | Set event handler for NodeEntryAdded and NodeEntryDropped events. More...
|
| |
| void | processEvents () |
| | Called by implementation which provided handler to process NodeEntryAdded/NodeEntryDropped events. Events are coalesced by type whereby old events are ignored. More...
|
| |
| std::shared_ptr< NodeEntry > | addNode (Node const &_node, NodeRelation _relation=NodeRelation::Unknown) |
| | Add node. Node will be pinged and empty shared_ptr is returned if node has never been seen or NodeID is empty. More...
|
| |
| std::list< NodeID > | nodes () const |
| | Returns list of node ids active in node table. More...
|
| |
| unsigned | count () const |
| | Returns node count. More...
|
| |
| std::list< NodeEntry > | snapshot () const |
| | Returns snapshot of table. More...
|
| |
| bool | haveNode (NodeID const &_id) |
| | Returns true if node id is in node table. More...
|
| |
| Node | node (NodeID const &_id) |
| | Returns the Node to the corresponding node id or the empty Node if that id is not found. More...
|
| |
Definition at line 62 of file net.cpp.
| TestNodeTable::TestNodeTable |
( |
ba::io_service & |
_io, |
|
|
KeyPair |
_alias, |
|
|
bi::address const & |
_addr, |
|
|
uint16_t |
_port = 30300 |
|
) |
| |
|
inline |
Constructor.
Definition at line 65 of file net.cpp.
| static std::vector<std::pair<KeyPair,unsigned> > TestNodeTable::createTestNodes |
( |
unsigned |
_count | ) |
|
|
inlinestatic |
| void TestNodeTable::pingTestNodes |
( |
std::vector< std::pair< KeyPair, unsigned >> const & |
_testNodes | ) |
|
|
inline |
| void TestNodeTable::populateTestNodes |
( |
std::vector< std::pair< KeyPair, unsigned >> const & |
_testNodes, |
|
|
size_t |
_count = 0 |
|
) |
| |
|
inline |
| void TestNodeTable::reset |
( |
| ) |
|
|
inline |
The documentation for this struct was generated from the following file:
- src/cpp-ethereum/test/libp2p/net.cpp