26 lines
527 B
C++
26 lines
527 B
C++
|
#ifndef FIREWALL_HPP
|
||
|
#define FIREWALL_HPP
|
||
|
|
||
|
#include "API.hpp"
|
||
|
|
||
|
namespace fw
|
||
|
{
|
||
|
class Firewall : public API
|
||
|
{
|
||
|
private:
|
||
|
public:
|
||
|
Firewall(const char *, const char *, const uint16_t = 8080);
|
||
|
~Firewall();
|
||
|
void handle_api_client();
|
||
|
};
|
||
|
|
||
|
Firewall::Firewall(const char *api_username, const char *api_password, const uint16_t port) : API(api_username, api_password, port) {}
|
||
|
Firewall::~Firewall() {}
|
||
|
void Firewall::handle_api_client()
|
||
|
{
|
||
|
handle_client();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
#endif
|