![]() |
Ethereum
PoC-8
The C++ Implementation of Ethereum
|
#include <WebThree.h>
Public Member Functions | |
| virtual | ~NetworkFace ()=default |
| virtual p2p::NodeInfo | nodeInfo () const =0 |
| Get information concerning this node. More... | |
| virtual std::vector< p2p::PeerSessionInfo > | peers ()=0 |
| Get information on the current peer set. More... | |
| virtual size_t | peerCount () const =0 |
| Same as peers().size(), but more efficient. More... | |
| virtual void | addPeer (p2p::NodeSpec const &_node, p2p::PeerType _t)=0 |
| Generalised peer addition. More... | |
| virtual void | addNode (p2p::NodeID const &_node, bi::tcp::endpoint const &_hostEndpoint)=0 |
| Add node to connect to. More... | |
| virtual void | requirePeer (p2p::NodeID const &_node, bi::tcp::endpoint const &_endpoint)=0 |
| Require connection to peer. More... | |
| virtual dev::bytes | saveNetwork ()=0 |
| Save peers. More... | |
| virtual void | setIdealPeerCount (size_t _n)=0 |
| Sets the ideal number of peers. More... | |
| virtual u256 | networkId () const =0 |
| Get network id. More... | |
| virtual void | startNetwork ()=0 |
| Start the network subsystem. More... | |
| virtual void | stopNetwork ()=0 |
| Stop the network subsystem. More... | |
| virtual bool | isNetworkStarted () const =0 |
| Is network working? there may not be any peers yet. More... | |
| virtual std::string | enode () const =0 |
| Get enode string. More... | |
Definition at line 52 of file WebThree.h.
|
virtualdefault |
|
pure virtual |
Add node to connect to.
Implemented in dev::WebThreeDirect.
|
pure virtual |
Generalised peer addition.
Implemented in dev::WebThreeDirect.
|
pure virtual |
Get enode string.
Implemented in dev::WebThreeDirect.
|
pure virtual |
Is network working? there may not be any peers yet.
Implemented in dev::WebThreeDirect.
|
pure virtual |
Get network id.
Implemented in dev::WebThreeDirect.
|
pure virtual |
Get information concerning this node.
Implemented in dev::WebThreeDirect.
|
pure virtual |
Same as peers().size(), but more efficient.
Implemented in dev::WebThreeDirect.
|
pure virtual |
Get information on the current peer set.
Implemented in dev::WebThreeDirect.
|
pure virtual |
Require connection to peer.
Implemented in dev::WebThreeDirect.
|
pure virtual |
Save peers.
Implemented in dev::WebThreeDirect.
|
pure virtual |
Sets the ideal number of peers.
Implemented in dev::WebThreeDirect.
|
pure virtual |
Start the network subsystem.
Implemented in dev::WebThreeDirect.
|
pure virtual |
Stop the network subsystem.
Implemented in dev::WebThreeDirect.