#include <ws_session.hpp>
|
void | on_close (beast::error_code ec) |
|
void | on_accept (beast::error_code ec) |
|
void | do_read () |
|
void | on_read (beast::error_code ec, std::size_t bytes_transferred) |
|
void | write (std::string &&message) |
|
|
static bool | is_normal (const beast::error_code &ec) |
|
◆ WsSession()
taraxa::net::WsSession::WsSession |
( |
tcp::socket && |
socket, |
|
|
std::shared_ptr< WsServer > |
ws_server |
|
) |
| |
|
inlineexplicit |
◆ close()
void taraxa::net::WsSession::close |
( |
bool |
normal = true | ) |
|
◆ do_read()
void taraxa::net::WsSession::do_read |
( |
| ) |
|
|
private |
◆ do_write()
void taraxa::net::WsSession::do_write |
( |
std::string && |
message | ) |
|
|
protected |
◆ handleRequest()
void taraxa::net::WsSession::handleRequest |
( |
| ) |
|
|
protected |
◆ is_closed()
bool taraxa::net::WsSession::is_closed |
( |
| ) |
const |
◆ is_normal()
bool taraxa::net::WsSession::is_normal |
( |
const beast::error_code & |
ec | ) |
|
|
staticprivate |
◆ newDagBlock()
void taraxa::net::WsSession::newDagBlock |
( |
const Json::Value & |
blk | ) |
|
◆ newDagBlockFinalized()
void taraxa::net::WsSession::newDagBlockFinalized |
( |
const Json::Value & |
payload | ) |
|
◆ newEthBlock()
void taraxa::net::WsSession::newEthBlock |
( |
const Json::Value & |
payload | ) |
|
◆ newLogs()
◆ newPbftBlockExecuted()
void taraxa::net::WsSession::newPbftBlockExecuted |
( |
const Json::Value & |
payload | ) |
|
◆ newPendingTransaction()
void taraxa::net::WsSession::newPendingTransaction |
( |
const Json::Value & |
payload | ) |
|
◆ newPillarBlockData()
void taraxa::net::WsSession::newPillarBlockData |
( |
const Json::Value & |
payload | ) |
|
◆ on_accept()
void taraxa::net::WsSession::on_accept |
( |
beast::error_code |
ec | ) |
|
|
private |
◆ on_close()
void taraxa::net::WsSession::on_close |
( |
beast::error_code |
ec | ) |
|
|
private |
◆ on_read()
void taraxa::net::WsSession::on_read |
( |
beast::error_code |
ec, |
|
|
std::size_t |
bytes_transferred |
|
) |
| |
|
private |
◆ processRequest()
virtual std::string taraxa::net::WsSession::processRequest |
( |
const std::string_view & |
request | ) |
|
|
pure virtual |
◆ run()
void taraxa::net::WsSession::run |
( |
| ) |
|
◆ write()
void taraxa::net::WsSession::write |
( |
std::string && |
message | ) |
|
|
private |
◆ closed_
std::atomic<bool> taraxa::net::WsSession::closed_ = false |
|
private |
◆ ip_
std::string taraxa::net::WsSession::ip_ |
|
private |
◆ logger_
◆ read_buffer_
beast::flat_buffer taraxa::net::WsSession::read_buffer_ |
|
private |
◆ subscription_id_
std::atomic<int> taraxa::net::WsSession::subscription_id_ = 0 |
|
protected |
◆ subscriptions_
◆ write_strand_
boost::asio::strand<boost::asio::any_io_executor> taraxa::net::WsSession::write_strand_ |
|
private |
◆ ws_
websocket::stream<beast::tcp_stream> taraxa::net::WsSession::ws_ |
|
protected |
◆ ws_server_
std::weak_ptr<WsServer> taraxa::net::WsSession::ws_server_ |
|
protected |
The documentation for this class was generated from the following files: