Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | List of all members
dev::NetworkFace Class Referenceabstract

#include <WebThree.h>

Inheritance diagram for dev::NetworkFace:
[legend]

Public Member Functions

virtual p2p::NodeInfo nodeInfo () const =0
 Get information concerning this node. More...
 
virtual std::vector< p2p::PeerSessionInfopeers ()=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...
 

Detailed Description

Definition at line 55 of file WebThree.h.

Member Function Documentation

virtual void dev::NetworkFace::addNode ( p2p::NodeID const &  _node,
bi::tcp::endpoint const &  _hostEndpoint 
)
pure virtual

Add node to connect to.

Implemented in dev::WebThreeDirect.

virtual void dev::NetworkFace::addPeer ( p2p::NodeSpec const &  _node,
p2p::PeerType  _t 
)
pure virtual

Generalised peer addition.

Implemented in dev::WebThreeDirect.

Here is the caller graph for this function:

virtual std::string dev::NetworkFace::enode ( ) const
pure virtual

Get enode string.

Implemented in dev::WebThreeDirect.

virtual bool dev::NetworkFace::haveNetwork ( ) const
pure virtual

Implemented in dev::WebThreeDirect.

virtual p2p::NodeID dev::NetworkFace::id ( ) const
pure virtual

Implemented in dev::WebThreeDirect.

virtual bool dev::NetworkFace::isNetworkStarted ( ) const
pure virtual

Is network working? there may not be any peers yet.

Implemented in dev::WebThreeDirect.

Here is the caller graph for this function:

virtual u256 dev::NetworkFace::networkId ( ) const
pure virtual

Get network id.

Implemented in dev::WebThreeDirect.

Here is the caller graph for this function:

virtual p2p::NetworkPreferences const& dev::NetworkFace::networkPreferences ( ) const
pure virtual

Implemented in dev::WebThreeDirect.

virtual p2p::NodeInfo dev::NetworkFace::nodeInfo ( ) const
pure virtual

Get information concerning this node.

Implemented in dev::WebThreeDirect.

Here is the caller graph for this function:

virtual p2p::Peers dev::NetworkFace::nodes ( ) const
pure virtual

Gets the nodes.

Implemented in dev::WebThreeDirect.

virtual size_t dev::NetworkFace::peerCount ( ) const
pure virtual

Same as peers().size(), but more efficient.

Implemented in dev::WebThreeDirect.

Here is the caller graph for this function:

virtual std::vector<p2p::PeerSessionInfo> dev::NetworkFace::peers ( )
pure virtual

Get information on the current peer set.

Implemented in dev::WebThreeDirect.

Here is the caller graph for this function:

virtual void dev::NetworkFace::requirePeer ( p2p::NodeID const &  _node,
bi::tcp::endpoint const &  _endpoint 
)
pure virtual

Require connection to peer.

Implemented in dev::WebThreeDirect.

virtual dev::bytes dev::NetworkFace::saveNetwork ( )
pure virtual

Save peers.

Implemented in dev::WebThreeDirect.

virtual void dev::NetworkFace::setIdealPeerCount ( size_t  _n)
pure virtual

Sets the ideal number of peers.

Implemented in dev::WebThreeDirect.

virtual void dev::NetworkFace::setNetworkPreferences ( p2p::NetworkPreferences const &  _n,
bool  _dropPeers 
)
pure virtual

Implemented in dev::WebThreeDirect.

virtual void dev::NetworkFace::startNetwork ( )
pure virtual

Start the network subsystem.

Implemented in dev::WebThreeDirect.

Here is the caller graph for this function:

virtual void dev::NetworkFace::stopNetwork ( )
pure virtual

Stop the network subsystem.

Implemented in dev::WebThreeDirect.

Here is the caller graph for this function:


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