|
EpcTools
An event based multi-threaded C++ development framework.
|
Implemts the HTTP server endpoint. More...
#include <emgmt.h>
Public Member Functions | |
| EManagementEndpoint (uint16_t port, size_t thrds=1) | |
| Class constructor. More... | |
| EManagementEndpoint (Pistache::Address &addr, size_t thrds=1) | |
| Class constructor. More... | |
| Void | start () |
| Starts the endpoint. More... | |
| Void | shutdown () |
| Stops and shuts down the endpoint. More... | |
| Void | registerHandler (EManagementHandler &hndlr) |
| Registers a REST handler. More... | |
Implemts the HTTP server endpoint.
| EManagementEndpoint::EManagementEndpoint | ( | uint16_t | port, |
| size_t | thrds = 1 |
||
| ) |
Class constructor.
| port | the IP port to listen for requests on (all IP addresses). |
| thrds | the number of threads that will process requests. |
| EManagementEndpoint::EManagementEndpoint | ( | Pistache::Address & | addr, |
| size_t | thrds = 1 |
||
| ) |
Class constructor.
| addr | the IP Address to listen for requests on. |
| thrds | the number of threads that will process requests. |
| Void EManagementEndpoint::registerHandler | ( | EManagementHandler & | hndlr | ) |
Registers a REST handler.
| Void EManagementEndpoint::shutdown | ( | ) |
Stops and shuts down the endpoint.
| Void EManagementEndpoint::start | ( | ) |
Starts the endpoint.
1.8.16