Fabcoin Core
0.16.2
P2P Digital Currency
|
Main API hub for interfacing with Web 3 components. More...
#include <WebThree.h>
Public Member Functions | |
WebThree () | |
Constructor for public instance. This will be shared across the local machine. More... | |
~WebThree () | |
Destructor. More... | |
eth::Interface * | ethereum () const |
shh::Interface * | whisper () const |
bzz::Interface * | swarm () const |
std::vector< p2p::PeerSessionInfo > | peers () |
Get information on the current peer set. More... | |
size_t | peerCount () const |
Same as peers().size(), but more efficient. More... | |
void | connect (std::string const &_seedHost, unsigned short _port=30303) |
Connect to a particular peer. More... | |
bool | haveNetwork () |
Is the network subsystem up? More... | |
dev::bytes | savePeers () |
Save peers. More... | |
void | restorePeers (bytesConstRef _saved) |
Restore peers. More... | |
Private Attributes | |
EthereumSlave * | m_ethereum = nullptr |
WhisperSlave * | m_whisper = nullptr |
RPCSlave | m_rpcSlave |
Main API hub for interfacing with Web 3 components.
This does transparent local multiplexing, so you can have as many running on the same machine all working from a single DB path.
Definition at line 268 of file WebThree.h.
dev::WebThree::WebThree | ( | ) |
Constructor for public instance. This will be shared across the local machine.
dev::WebThree::~WebThree | ( | ) |
Destructor.
void dev::WebThree::connect | ( | std::string const & | _seedHost, |
unsigned short | _port = 30303 |
||
) |
Connect to a particular peer.
|
inline |
Definition at line 279 of file WebThree.h.
bool dev::WebThree::haveNetwork | ( | ) |
Is the network subsystem up?
std::vector<p2p::PeerSessionInfo> dev::WebThree::peers | ( | ) |
Get information on the current peer set.
void dev::WebThree::restorePeers | ( | bytesConstRef | _saved | ) |
Restore peers.
dev::bytes dev::WebThree::savePeers | ( | ) |
Save peers.
|
inline |
Definition at line 281 of file WebThree.h.
|
inline |
Definition at line 280 of file WebThree.h.
|
private |
Definition at line 304 of file WebThree.h.
|
private |
Definition at line 308 of file WebThree.h.
|
private |
Definition at line 305 of file WebThree.h.