BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
VPTHTTPScanner.h
1 #pragma once
2 
3 #include <Poco/Net/IPAddress.h>
4 #include <Poco/Net/SocketAddress.h>
5 
6 #include "net/AbstractHTTPScanner.h"
7 
8 namespace BeeeOn {
9 
11 public:
13  VPTHTTPScanner(const std::string& path, uint16_t port, const Poco::Net::IPAddress& minNetMask);
14  ~VPTHTTPScanner();
15 
16 protected:
17  void prepareRequest(Poco::Net::HTTPRequest& request) override;
18  bool isValidResponse(const std::string& response) override;
19 };
20 
21 }
Definition: VPTHTTPScanner.h:10
bool isValidResponse(const std::string &response) override
It defines if the response is valid or not.
Definition: VPTHTTPScanner.cpp:35
The abstract class contains core of HTTP scanning of network. Derivated classes will have to implemen...
Definition: AbstractHTTPScanner.h:24