FlightGear next
flightgear::http::WebsocketConnection Class Reference

Inherits flightgear::http::MongooseConnection.

Public Member Functions

 WebsocketConnection (MongooseHttpd *httpd)
 
virtual ~WebsocketConnection ()
 
virtual void close (struct mg_connection *connection)
 
virtual int poll (struct mg_connection *connection)
 
virtual int request (struct mg_connection *connection)
 
virtual int onConnect (struct mg_connection *connection)
 
- Public Member Functions inherited from flightgear::http::MongooseConnection
 MongooseConnection (MongooseHttpd *httpd)
 
virtual ~MongooseConnection ()
 
virtual void write (const char *data, size_t len)
 
- Public Member Functions inherited from flightgear::http::Connection
void put (const std::string &key, SGSharedPtr< ConnectionData > value)
 
SGSharedPtr< ConnectionDataget (const std::string &key)
 
void remove (const std::string &key)
 

Additional Inherited Members

- Static Public Member Functions inherited from flightgear::http::MongooseConnection
static MongooseConnectiongetConnection (MongooseHttpd *httpd, struct mg_connection *connection)
 
- Protected Member Functions inherited from flightgear::http::MongooseConnection
void setConnection (struct mg_connection *connection)
 
- Protected Attributes inherited from flightgear::http::MongooseConnection
MongooseHttpd_httpd
 
struct mg_connection * _connection
 

Detailed Description

Definition at line 273 of file httpd.cxx.

Constructor & Destructor Documentation

◆ WebsocketConnection()

flightgear::http::WebsocketConnection::WebsocketConnection ( MongooseHttpd * httpd)
inline

Definition at line 275 of file httpd.cxx.

◆ ~WebsocketConnection()

virtual flightgear::http::WebsocketConnection::~WebsocketConnection ( )
inlinevirtual

Definition at line 279 of file httpd.cxx.

Member Function Documentation

◆ close()

void flightgear::http::WebsocketConnection::close ( struct mg_connection * connection)
virtual

Implements flightgear::http::MongooseConnection.

Definition at line 375 of file httpd.cxx.

◆ onConnect()

int flightgear::http::WebsocketConnection::onConnect ( struct mg_connection * connection)
virtual

Reimplemented from flightgear::http::MongooseConnection.

Definition at line 396 of file httpd.cxx.

◆ poll()

int flightgear::http::WebsocketConnection::poll ( struct mg_connection * connection)
virtual

Implements flightgear::http::MongooseConnection.

Definition at line 383 of file httpd.cxx.

◆ request()

int flightgear::http::WebsocketConnection::request ( struct mg_connection * connection)
virtual

Implements flightgear::http::MongooseConnection.

Definition at line 410 of file httpd.cxx.


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