FlightGear next
flightgear::http::MongooseHttpd Class Reference

A FGHttpd implementation based on mongoose httpd. More...

Inherits flightgear::http::FGHttpd.

Public Member Functions

 MongooseHttpd (SGPropertyNode_ptr)
 Construct a MongooseHttpd object from options in a PropertyNode.
 
 ~MongooseHttpd ()
 Cleanup et.al.
 
void bind () override
 
void init () override
 
void unbind () override
 
void update (double dt) override
 
SGSharedPtr< URIHandlerfindHandler (const std::string &uri)
 Returns a URIHandler for the given uri.
 
WebsocketnewWebsocket (const string &uri)
 

Static Public Member Functions

static const char * staticSubsystemClassId ()
 
- Static Public Member Functions inherited from flightgear::http::FGHttpd
static const char * staticSubsystemClassId ()
 
static FGHttpdcreateInstance (SGPropertyNode_ptr configNode)
 

Detailed Description

A FGHttpd implementation based on mongoose httpd.

Mongoose API is documented here: http://cesanta.com/docs/API.shtml

Definition at line 171 of file httpd.cxx.

Constructor & Destructor Documentation

◆ MongooseHttpd()

flightgear::http::MongooseHttpd::MongooseHttpd ( SGPropertyNode_ptr configNode)

Construct a MongooseHttpd object from options in a PropertyNode.

Definition at line 434 of file httpd.cxx.

◆ ~MongooseHttpd()

flightgear::http::MongooseHttpd::~MongooseHttpd ( )

Cleanup et.al.

Definition at line 439 of file httpd.cxx.

Member Function Documentation

◆ bind()

void flightgear::http::MongooseHttpd::bind ( )
override

Definition at line 544 of file httpd.cxx.

◆ findHandler()

SGSharedPtr< URIHandler > flightgear::http::MongooseHttpd::findHandler ( const std::string & uri)
inline

Returns a URIHandler for the given uri.

See also
URIHandlerMap::findHandler( const std::string & uri )

Definition at line 198 of file httpd.cxx.

◆ init()

void flightgear::http::MongooseHttpd::init ( )
override

Definition at line 444 of file httpd.cxx.

◆ newWebsocket()

Websocket * flightgear::http::MongooseHttpd::newWebsocket ( const string & uri)

Definition at line 596 of file httpd.cxx.

◆ staticSubsystemClassId()

static const char * flightgear::http::MongooseHttpd::staticSubsystemClassId ( )
inlinestatic

Definition at line 191 of file httpd.cxx.

◆ unbind()

void flightgear::http::MongooseHttpd::unbind ( )
override

Definition at line 548 of file httpd.cxx.

◆ update()

void flightgear::http::MongooseHttpd::update ( double dt)
override

Definition at line 556 of file httpd.cxx.


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