A base class for websocket connection. More...
#include <websocket.h>
Public Member Functions | |
virtual void | send_binary (std::string msg)=0 |
virtual void | send_text (std::string msg)=0 |
virtual void | send_ping (std::string msg)=0 |
virtual void | send_pong (std::string msg)=0 |
virtual void | close (std::string const &msg="quit", uint16_t status_code=CloseStatusCode::NormalClosure)=0 |
virtual std::string | get_remote_ip ()=0 |
virtual std::string | get_subprotocol () const =0 |
void | userdata (void *u) |
void * | userdata () |
A base class for websocket connection.
|
pure virtual |
Implemented in crow::websocket::Connection< Adaptor, Handler >.
|
pure virtual |
Implemented in crow::websocket::Connection< Adaptor, Handler >.
|
pure virtual |
Implemented in crow::websocket::Connection< Adaptor, Handler >.
|
pure virtual |
Implemented in crow::websocket::Connection< Adaptor, Handler >.
|
pure virtual |
Implemented in crow::websocket::Connection< Adaptor, Handler >.
|
pure virtual |
Implemented in crow::websocket::Connection< Adaptor, Handler >.