client-cpp  0.10.0
kaa::PingConnectivityChecker Class Reference

#include <PingConnectivityChecker.hpp>

+ Inheritance diagram for kaa::PingConnectivityChecker:
+ Collaboration diagram for kaa::PingConnectivityChecker:

Public Member Functions

 PingConnectivityChecker ()
 
 PingConnectivityChecker (const std::string &host, std::uint16_t port=DEFAULT_PORT)
 
virtual bool checkConnectivity ()
 
- Public Member Functions inherited from kaa::IConnectivityChecker
virtual ~IConnectivityChecker ()=default
 

Static Public Attributes

static const std::string DEFAULT_HOST
 
static const std::uint16_t DEFAULT_PORT = 80
 

Detailed Description

Definition at line 28 of file PingConnectivityChecker.hpp.

Constructor & Destructor Documentation

kaa::PingConnectivityChecker::PingConnectivityChecker ( )
inline

Definition at line 34 of file PingConnectivityChecker.hpp.

kaa::PingConnectivityChecker::PingConnectivityChecker ( const std::string &  host,
std::uint16_t  port = DEFAULT_PORT 
)
inline

Definition at line 37 of file PingConnectivityChecker.hpp.

Member Function Documentation

virtual bool kaa::PingConnectivityChecker::checkConnectivity ( )
virtual

Check whether network connectivity exists.

Returns
True if connection exists, false otherwise.

Implements kaa::IConnectivityChecker.

Member Data Documentation

const std::string kaa::PingConnectivityChecker::DEFAULT_HOST
static

Definition at line 30 of file PingConnectivityChecker.hpp.

const std::uint16_t kaa::PingConnectivityChecker::DEFAULT_PORT = 80
static

Definition at line 31 of file PingConnectivityChecker.hpp.


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