DUNE: Uniform Navigational Environment  2.3.2
DUNE::Network::HTTPServer Class Reference

Public Member Functions

 HTTPServer (int port, unsigned threads, HTTPRequestHandler &handler)
 
 ~HTTPServer (void)
 
void poll (double timeout)
 

Constructor & Destructor Documentation

DUNE::Network::HTTPServer::HTTPServer ( int  port,
unsigned  threads,
HTTPRequestHandler handler 
)

Constructor.

Parameters
portlistening port.
threadsnumber of worker threads.
handlerHTTP request handler.

References DUNE::Network::TCPSocket::addToPoll(), DUNE::Network::TCPSocket::bind(), DUNE::Network::TCPSocket::listen(), and DUNE::Concurrency::Runnable::start().

DUNE::Network::HTTPServer::~HTTPServer ( void  )

Destructor.

Member Function Documentation

void DUNE::Network::HTTPServer::poll ( double  timeout)
Collaboration diagram for DUNE::Network::HTTPServer:
Collaboration graph