Fabcoin Core
0.16.2
P2P Digital Currency
|
#include <WebThree.h>
Public Member Functions | |
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 bool | haveNetwork () const =0 |
virtual p2p::NetworkPreferences const & | networkPreferences () const =0 |
virtual void | setNetworkPreferences (p2p::NetworkPreferences const &_n, bool _dropPeers)=0 |
virtual p2p::NodeID | id () const =0 |
virtual u256 | networkId () const =0 |
Get network id. More... | |
virtual p2p::Peers | nodes () const =0 |
Gets the nodes. 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 55 of file WebThree.h.
|
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 |
Implemented in dev::WebThreeDirect.
|
pure virtual |
Implemented in dev::WebThreeDirect.
|
pure virtual |
Is network working? there may not be any peers yet.
Implemented in dev::WebThreeDirect.
|
pure virtual |
|
pure virtual |
Implemented in dev::WebThreeDirect.
|
pure virtual |
Get information concerning this node.
Implemented in dev::WebThreeDirect.
|
pure virtual |
Gets the nodes.
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 |
Implemented in dev::WebThreeDirect.
|
pure virtual |
Start the network subsystem.
Implemented in dev::WebThreeDirect.
|
pure virtual |
Stop the network subsystem.
Implemented in dev::WebThreeDirect.