// Host
//-----------------------------------------------------------------------------
+/**
+ * @brief Parameterized constructor.
+ *
+ * @param address The host address
+ */
Host::Host( string address ) :
Address( address ),
Port( 0 ),
{
}
+/**
+ * @brief Destructor.
+ */
Host::~Host()
{
}
/**
- * @return a string representing the host address.
+ * @return A string representing the host address.
*/
string Host::get_address() const
{
}
/**
- * @param address a string representing the host address.
+ * @param address A string representing the host address.
*/
void Host::set_address( const string &address )
{
}
/**
- * @return the destination port number to ping the host.
+ * @return The destination port number to ping the host.
*/
uint16_t Host::get_port() const
{
}
/**
- * @param port the destination port number to ping the host.
+ * @param port The destination port number to ping the host.
*/
void Host::set_port( const uint16_t port )
{
}
/**
- * @return the interval between each ping to the host.
+ * @return The interval between each ping to the host.
*/
int Host::get_interval_in_sec() const
{
}
/**
- * @param interval_in_sec the interval between each ping to the host.
+ * @param interval_in_sec The interval between each ping to the host.
*/
void Host::set_interval_in_sec( const int interval_in_sec )
{
// Host
//-----------------------------------------------------------------------------
+/**
+ * @brief This class holds the values for one host configured.
+ */
class Host
{
public:
void set_interval_in_sec( const int interval_in_sec );
private:
- /// the address of the host
+ /// The address of the host
std::string Address;
- /// the port of the host
+ /// The port of the host
uint16_t Port;
/// The protocol to ping
PingProtocol Protocol;
- /// the interval between each ping to the host
+ /// The interval between each ping to the host
int IntervalInSec;
};