10Duke Scale C++ Client
Loading...
Searching...
No Matches
HTTPServer.h
1#ifndef TENDUKE_HTTP_SERVER_HTTPLISTENER_H
2#define TENDUKE_HTTP_SERVER_HTTPLISTENER_H
3
4#include "./HTTPRequestHandler.h"
5
6#include <cstdint>
7#include <memory>
8
9namespace tenduke { namespace http { namespace server {
10
12const std::uint16_t RANDOM_AVAILABLE_PORT = 0;
13
18
19public:
20 virtual ~HTTPServer() = default;
21
25 virtual void start() = 0;
26
30 virtual void stop() = 0;
31
36 virtual std::uint16_t getPort() = 0;
37};
38
39}}}
40
41#endif //TENDUKE_HTTP_SERVER_HTTPLISTENER_H
Interface for simple HTTPServer.
Definition HTTPServer.h:17
virtual std::uint16_t getPort()=0
Returns the port where this simple server is listening.
virtual void start()=0
Starts the server.
virtual void stop()=0
Stops the server.
const std::uint16_t RANDOM_AVAILABLE_PORT
Magic value to indicate "random available port".
Definition HTTPServer.h:12
Root for classes, functions and globals of 10Duke C++ Client.
Definition BackendConfiguration.h:7