BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
Public Member Functions | Protected Member Functions
BeeeOn::VPTHTTPScanner Class Reference
Inheritance diagram for BeeeOn::VPTHTTPScanner:
BeeeOn::AbstractHTTPScanner BeeeOn::Loggable

Public Member Functions

 VPTHTTPScanner (const std::string &path, uint16_t port, const Poco::Net::IPAddress &minNetMask)
 
- Public Member Functions inherited from BeeeOn::AbstractHTTPScanner
 AbstractHTTPScanner (const std::string &path, uint16_t port, const Poco::Net::IPAddress &minNetMask)
 
std::vector
< Poco::Net::SocketAddress > 
scan (const uint32_t maxResponseLength)
 It executes the scan of proper network interfaces. More...
 
void cancel ()
 
void setPath (const std::string &path)
 
void setPort (Poco::UInt16 port)
 
void setMinNetMask (const Poco::Net::IPAddress &minNetMask)
 
void setPingTimeout (const Poco::Timespan &pingTimeout)
 
void setHTTPTimeout (const Poco::Timespan &httpTimeout)
 
void setBlackList (const std::set< std::string > &set)
 
std::string path ()
 
Poco::UInt16 port ()
 

Protected Member Functions

void prepareRequest (Poco::Net::HTTPRequest &request) override
 
bool isValidResponse (const std::string &response) override
 It defines if the response is valid or not. More...
 
- Protected Member Functions inherited from BeeeOn::AbstractHTTPScanner
void probeInterface (StopControl::Run &run, const Poco::Net::NetworkInterface &interface, std::vector< Poco::Net::SocketAddress > &devices, const Poco::Int64 maxResponseLength)
 It explores network interface. More...
 
void probeAddressRange (StopControl::Run &run, const IPAddressRange &range, std::vector< Poco::Net::SocketAddress > &devices, const Poco::Int64 maxResponseLength)
 It explores IP address range. More...
 
HTTPEntireResponse sendRequest (const Poco::Net::SocketAddress &socketAddress, const Poco::Int64 maxResponseLength)
 It sends HTTP request. More...
 
bool addressIncompatible (const Poco::Net::NetworkInterface::AddressTuple &addressTuple) const
 
std::vector
< Poco::Net::NetworkInterface > 
listNetworkInterfaces ()
 
- Protected Member Functions inherited from BeeeOn::Loggable
void setupLogger (Poco::Logger *logger=0) const
 
Poco::Logger & logger () const
 
 Loggable (const ClassInfo &info)
 
 Loggable (const std::type_info &info)
 

Additional Inherited Members

- Static Protected Member Functions inherited from BeeeOn::Loggable
static Poco::Logger & forMethod (const char *name)
 
static Poco::Logger & forClass (const ClassInfo &info)
 
static Poco::Logger & forClass (const std::type_info &info)
 
template<typename T >
static Poco::Logger & forInstance (const T *i)
 
static void configureSimple (Poco::Logger &logger, const std::string &level)
 
static void logException (Poco::Logger &logger, const Poco::Message::Priority priority, const Poco::Exception &e, const char *file, size_t line)
 

Member Function Documentation

bool VPTHTTPScanner::isValidResponse ( const std::string &  response)
overrideprotectedvirtual

It defines if the response is valid or not.

Parameters
responseResponse message.
Returns
If the response is valid or not.

Implements BeeeOn::AbstractHTTPScanner.


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