Crow  1.0
A C++ microframework for the web
crow::websocket::connection Struct Referenceabstract

A base class for websocket connection. More...

Inheritance diagram for crow::websocket::connection:
Collaboration diagram for crow::websocket::connection:

Public Member Functions

virtual void send_binary (const std::string &msg)=0
 
virtual void send_text (const std::string &msg)=0
 
virtual void send_ping (const std::string &msg)=0
 
virtual void send_pong (const std::string &msg)=0
 
virtual void close (const std::string &msg="quit")=0
 
virtual std::string get_remote_ip ()=0
 
virtual ~connection ()
 
void userdata (void *u)
 
void * userdata ()
 

Private Attributes

void * userdata_
 

Detailed Description

A base class for websocket connection.

Constructor & Destructor Documentation

◆ ~connection()

virtual crow::websocket::connection::~connection ( )
inlinevirtual

Member Function Documentation

◆ send_binary()

virtual void crow::websocket::connection::send_binary ( const std::string &  msg)
pure virtual

◆ send_text()

virtual void crow::websocket::connection::send_text ( const std::string &  msg)
pure virtual

◆ send_ping()

virtual void crow::websocket::connection::send_ping ( const std::string &  msg)
pure virtual

◆ send_pong()

virtual void crow::websocket::connection::send_pong ( const std::string &  msg)
pure virtual

◆ close()

virtual void crow::websocket::connection::close ( const std::string &  msg = "quit")
pure virtual

◆ get_remote_ip()

virtual std::string crow::websocket::connection::get_remote_ip ( )
pure virtual

◆ userdata() [1/2]

void crow::websocket::connection::userdata ( void *  u)
inline

◆ userdata() [2/2]

void* crow::websocket::connection::userdata ( )
inline

Member Data Documentation

◆ userdata_

void* crow::websocket::connection::userdata_
private

The documentation for this struct was generated from the following file: