DUNE: Uniform Navigational Environment
2.3.2
|
Public Member Functions | |
HTTPServer (int port, unsigned threads, HTTPRequestHandler &handler) | |
~HTTPServer (void) | |
void | poll (double timeout) |
DUNE::Network::HTTPServer::HTTPServer | ( | int | port, |
unsigned | threads, | ||
HTTPRequestHandler & | handler | ||
) |
Constructor.
port | listening port. |
threads | number of worker threads. |
handler | HTTP 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.
void DUNE::Network::HTTPServer::poll | ( | double | timeout | ) |