Wexus2 0.20
wexus::HTTPServer Class Reference

#include <HTTPServer.h>

Inheritance diagram for wexus::HTTPServer:

List of all members.

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 &params)

Detailed Description

Base class/interface for all HTTP servers.

Author:
Aleksander Demko

Member Function Documentation

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.

Author:
Aleksander Demko
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.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Enumerations Enumerator