Wexus2 0.20
|
#include <HTTPServer.h>
Classes | |
class | Exception |
class | PortInUseException |
Public Member Functions | |
virtual | ~HTTPServer () |
destructor - will stop the server is needed | |
virtual bool | isRunning (void) const =0 |
is the web server currently running? | |
virtual void | start (void)=0 |
starts the web server | |
virtual void | quit (void)=0 |
virtual void | wait (void)=0 |
waits until the server finishes | |
Static Public Member Functions | |
static std::shared_ptr < wexus::HTTPServer > | factoryNew (const wexus::HTTPParams ¶ms) |
Base class/interface for all HTTP servers.
static std::shared_ptr<wexus::HTTPServer> wexus::HTTPServer::factoryNew | ( | const wexus::HTTPParams & | params | ) | [static] |
Create a new HTTPServer implementation, based on some decendant. This is a factory method. In the future, this could take a string or perhaps be moved to a whole factory class system.
Exceptions might be thrown.
virtual void wexus::HTTPServer::quit | ( | void | ) | [pure virtual] |
notifies the web server to stop. you should still do a wait() this function may or may not block
Implemented in wexus::MongooseServer.