#include "host.h"
+//-----------------------------------------------------------------------------
+// Host
+//-----------------------------------------------------------------------------
+
Host::Host( std::string address ) :
address( address ),
port( 0 ),
#include <stdint.h>
+//-----------------------------------------------------------------------------
+// Host
+//-----------------------------------------------------------------------------
+
class Host
{
public:
#include "icmp_header.h"
+//-----------------------------------------------------------------------------
+// IcmpHeader
+//-----------------------------------------------------------------------------
+
IcmpHeader::IcmpHeader()
{
std::fill( rep, rep + sizeof(rep), 0 );
#include <istream>
#include <ostream>
#include <algorithm>
-
-// ICMP header format:
+//-----------------------------------------------------------------------------
+// IcmpHeader
+//-----------------------------------------------------------------------------
+// ICMP header format
//
// 0 8 16 31
// +---------------+---------------+------------------------------+ ---
// | identifier | sequence number | |
// | | | v
// +-------------------------------+------------------------------+ ---
+//
+//-----------------------------------------------------------------------------
class IcmpHeader
{
#include "ipv4_header.h"
+//-----------------------------------------------------------------------------
+// Ipv4Header
+//-----------------------------------------------------------------------------
+
Ipv4Header::Ipv4Header()
{
std::fill( rep, rep + sizeof(rep), 0 );
#include <algorithm>
#include <boost/asio/ip/address_v4.hpp>
+//-----------------------------------------------------------------------------
+// Ipv4Header
+//-----------------------------------------------------------------------------
// IPv4 header format:
//
// 0 8 16 31
// | | |
// | | v
// +--------------------------------------------------------------+ ---
+//
+//-----------------------------------------------------------------------------
class Ipv4Header
{
#include "pingcheck.h"
+//-----------------------------------------------------------------------------
+// PingCheck
+//-----------------------------------------------------------------------------
+
PingCheck::PingCheck() :
configuration( NULL ),
ping_managers()
#include "configuration.h"
#include "pingmanager.h"
+//-----------------------------------------------------------------------------
+// PingCheck
+//-----------------------------------------------------------------------------
+
class PingCheck
{
public:
#include "pinger.h"
+//-----------------------------------------------------------------------------
+// Pinger
+//-----------------------------------------------------------------------------
+
Pinger::Pinger()
{
}
#include "host.h"
+//-----------------------------------------------------------------------------
+// Pinger
+//-----------------------------------------------------------------------------
+
class Pinger
{
public:
#include "pingmanager.h"
+//-----------------------------------------------------------------------------
+// PingManager
+//-----------------------------------------------------------------------------
+
PingManager::PingManager() :
pinger( NULL ),
interval( 0 ),
#include "pinger.h"
#include "host.h"
+//-----------------------------------------------------------------------------
+// PingManager
+//-----------------------------------------------------------------------------
+
class PingManager
{
public: