EpcTools
An event based multi-threaded C++ development framework.
Public Member Functions | List of all members
EManagementEndpoint Class Reference

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...
 

Detailed Description

Implemts the HTTP server endpoint.

Constructor & Destructor Documentation

◆ EManagementEndpoint() [1/2]

EManagementEndpoint::EManagementEndpoint ( uint16_t  port,
size_t  thrds = 1 
)

Class constructor.

Parameters
portthe IP port to listen for requests on (all IP addresses).
thrdsthe number of threads that will process requests.

◆ EManagementEndpoint() [2/2]

EManagementEndpoint::EManagementEndpoint ( Pistache::Address &  addr,
size_t  thrds = 1 
)

Class constructor.

Parameters
addrthe IP Address to listen for requests on.
thrdsthe number of threads that will process requests.

Member Function Documentation

◆ registerHandler()

Void EManagementEndpoint::registerHandler ( EManagementHandler hndlr)

Registers a REST handler.

◆ shutdown()

Void EManagementEndpoint::shutdown ( )

Stops and shuts down the endpoint.

◆ start()

Void EManagementEndpoint::start ( )

Starts the endpoint.


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