cgv
cgv::os::web_server Class Referenceabstract

simple interface for a web server More...

#include <web_server.h>

Inheritance diagram for cgv::os::web_server:
cgv::os::web_server_thread

Public Member Functions

 web_server (unsigned int _port=80)
 create a web server that listens to the given port
 
virtual void handle_request (http_request &request)=0
 reimplement to handle requests
 
void start ()
 start the web server (does never return)
 
void stop ()
 can only be called from a different thread
 
unsigned int get_port () const
 return the port to which the web server listens
 

Detailed Description

simple interface for a web server


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