|
RESTinio
|
WebSocket connection base. More...
#include <ws_connection_base.hpp>
Public Member Functions | |
| ws_connection_base_t (connection_id_t id) | |
| virtual void | shutdown ()=0 |
| Shutdown websocket. | |
| virtual void | kill ()=0 |
| Kill websocket. | |
| virtual void | init_read (ws_handle_t wsh)=0 |
| Start reading ws-messages. | |
| virtual void | write_data (write_group_t wg, bool is_close_frame)=0 |
| Write pieces of outgoing data. | |
Public Member Functions inherited from restinio::tcp_connection_ctx_base_t | |
| tcp_connection_ctx_base_t (connection_id_t id) | |
| virtual | ~tcp_connection_ctx_base_t ()=default |
| connection_id_t | connection_id () const noexcept |
| Get connection id. | |
| virtual void | check_timeout (std::shared_ptr< tcp_connection_ctx_base_t > &self)=0 |
| Check timeouts for all activities. | |
Additional Inherited Members | |
Protected Member Functions inherited from restinio::tcp_connection_ctx_base_t | |
| template<typename Derived > | |
| std::shared_ptr< Derived > | shared_from_concrete () |
| Cast self to derived class. | |
WebSocket connection base.
Definition at line 37 of file ws_connection_base.hpp.
|
inline |
Definition at line 41 of file ws_connection_base.hpp.
|
pure virtual |
Start reading ws-messages.
Implemented in restinio::websocket::basic::impl::ws_connection_t< Traits, WS_Message_Handler >.
Kill websocket.
Implemented in restinio::websocket::basic::impl::ws_connection_t< Traits, WS_Message_Handler >.
Shutdown websocket.
Implemented in restinio::websocket::basic::impl::ws_connection_t< Traits, WS_Message_Handler >.
|
pure virtual |
Write pieces of outgoing data.
Implemented in restinio::websocket::basic::impl::ws_connection_t< Traits, WS_Message_Handler >.