![]() |
Cadabra
Computer algebra system for field theory problems
|
Classes |
Public Member Functions | |
| connection (boost::asio::io_context &ioc, websocket_server &server, id_type id) | |
| void | start () |
| void | send (const std::string &message) |
| void | close () |
Public Attributes | |
| friend | websocket_server |
Private Member Functions | |
| void | on_read_request (boost::beast::error_code ec, std::size_t) |
| void | on_websocket_accept (boost::beast::error_code ec) |
| void | do_read_websocket () |
| void | on_read_websocket (boost::beast::error_code ec, std::size_t) |
| void | do_write () |
| void | on_write (boost::beast::error_code ec, std::size_t) |
| void | on_close (boost::beast::error_code ec) |
| void | handle_http_request () |
Private Attributes | |
| boost::asio::ip::tcp::socket | socket_ |
| std::optional< boost::beast::websocket::stream< boost::asio::ip::tcp::socket & > > | ws_stream_ |
| boost::beast::flat_buffer | buffer_ |
| websocket_server::request_type | http_request_ |
| websocket_server & | server_ |
| id_type | id_ |
| bool | is_websocket_ {false} |
| std::mutex | queue_mutex_ |
| std::queue< queued_message > | message_queue_ |
| bool | writing_ {false} |
| websocket_server::connection::connection | ( | boost::asio::io_context & | ioc, |
| websocket_server & | server, | ||
| id_type | id ) |
| void websocket_server::connection::close | ( | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
| void websocket_server::connection::send | ( | const std::string & | message | ) |
| void websocket_server::connection::start | ( | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
| friend websocket_server::connection::websocket_server |
|
private |
|
private |