#include <ws_server.hpp>
◆ WsServer() [1/3]
taraxa::net::WsServer::WsServer |
( |
std::shared_ptr< util::ThreadPool > |
thread_pool, |
|
|
tcp::endpoint |
endpoint, |
|
|
addr_t |
node_addr, |
|
|
uint32_t |
max_pending_tasks |
|
) |
| |
◆ ~WsServer()
taraxa::net::WsServer::~WsServer |
( |
| ) |
|
|
virtual |
◆ WsServer() [2/3]
taraxa::net::WsServer::WsServer |
( |
const WsServer & |
| ) |
|
|
delete |
◆ WsServer() [3/3]
taraxa::net::WsServer::WsServer |
( |
WsServer && |
| ) |
|
|
delete |
◆ createSession()
virtual std::shared_ptr<WsSession> taraxa::net::WsServer::createSession |
( |
tcp::socket && |
socket | ) |
|
|
pure virtual |
◆ do_accept()
void taraxa::net::WsServer::do_accept |
( |
| ) |
|
|
private |
◆ newDagBlock()
void taraxa::net::WsServer::newDagBlock |
( |
const DagBlock & |
blk | ) |
|
◆ newDagBlockFinalized()
void taraxa::net::WsServer::newDagBlockFinalized |
( |
const blk_hash_t & |
blk, |
|
|
uint64_t |
period |
|
) |
| |
◆ newEthBlock()
◆ newPbftBlockExecuted()
void taraxa::net::WsServer::newPbftBlockExecuted |
( |
const PbftBlock & |
sche_blk, |
|
|
const std::vector< blk_hash_t > & |
finalized_dag_blk_hashes |
|
) |
| |
◆ newPendingTransaction()
void taraxa::net::WsServer::newPendingTransaction |
( |
const trx_hash_t & |
trx_hash | ) |
|
◆ newPillarBlockData()
◆ numberOfPendingTasks()
uint32_t taraxa::net::WsServer::numberOfPendingTasks |
( |
| ) |
const |
◆ numberOfSessions()
uint32_t taraxa::net::WsServer::numberOfSessions |
( |
| ) |
|
◆ on_accept()
void taraxa::net::WsServer::on_accept |
( |
beast::error_code |
ec, |
|
|
tcp::socket |
socket |
|
) |
| |
|
private |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ pendingTasksOverLimit()
bool taraxa::net::WsServer::pendingTasksOverLimit |
( |
| ) |
const |
|
inline |
◆ run()
void taraxa::net::WsServer::run |
( |
| ) |
|
◆ StartListening()
virtual bool taraxa::net::WsServer::StartListening |
( |
| ) |
|
|
inlinevirtual |
◆ StopListening()
virtual bool taraxa::net::WsServer::StopListening |
( |
| ) |
|
|
inlinevirtual |
◆ acceptor_
tcp::acceptor taraxa::net::WsServer::acceptor_ |
|
private |
◆ ioc_
◆ kMaxPendingTasks
uint32_t taraxa::net::WsServer::kMaxPendingTasks |
|
protected |
◆ node_addr_
const addr_t taraxa::net::WsServer::node_addr_ |
|
protected |
◆ sessions
std::list<std::shared_ptr<WsSession> > taraxa::net::WsServer::sessions |
|
private |
◆ sessions_mtx_
boost::shared_mutex taraxa::net::WsServer::sessions_mtx_ |
|
private |
◆ stopped_
std::atomic<bool> taraxa::net::WsServer::stopped_ = false |
|
private |
◆ thread_pool_
The documentation for this class was generated from the following files: