Source code ornamentation
authorGuilherme Maciel Ferreira <guilherme.maciel.ferreira@intra2net.com>
Tue, 22 Feb 2011 15:01:32 +0000 (16:01 +0100)
committerGuilherme Maciel Ferreira <guilherme.maciel.ferreira@intra2net.com>
Tue, 22 Feb 2011 15:01:32 +0000 (16:01 +0100)
12 files changed:
src/ping/host.cpp
src/ping/host.h
src/ping/icmp_header.cpp
src/ping/icmp_header.h
src/ping/ipv4_header.cpp
src/ping/ipv4_header.h
src/ping/pingcheck.cpp
src/ping/pingcheck.h
src/ping/pinger.cpp
src/ping/pinger.h
src/ping/pingmanager.cpp
src/ping/pingmanager.h

index 8d45430..1bdadb3 100644 (file)
@@ -1,5 +1,9 @@
 #include "host.h"
 
+//-----------------------------------------------------------------------------
+// Host
+//-----------------------------------------------------------------------------
+
 Host::Host( std::string address ) :
     address( address ),
     port( 0 ),
index 9af8e8b..e9ec04f 100644 (file)
@@ -6,6 +6,10 @@
 
 #include <stdint.h>
 
+//-----------------------------------------------------------------------------
+// Host
+//-----------------------------------------------------------------------------
+
 class Host
 {
 public:
index c3b4e91..20e0409 100644 (file)
@@ -1,5 +1,9 @@
 #include "icmp_header.h"
 
+//-----------------------------------------------------------------------------
+// IcmpHeader
+//-----------------------------------------------------------------------------
+
 IcmpHeader::IcmpHeader()
 {
     std::fill( rep, rep + sizeof(rep), 0 );
index 6b459f4..880fe59 100644 (file)
@@ -4,8 +4,10 @@
 #include <istream>
 #include <ostream>
 #include <algorithm>
-
-// ICMP header format:
+//-----------------------------------------------------------------------------
+// IcmpHeader
+//-----------------------------------------------------------------------------
+// ICMP header format
 //
 // 0               8               16                             31
 // +---------------+---------------+------------------------------+      ---
@@ -17,6 +19,8 @@
 // |          identifier           |       sequence number        |       |
 // |                               |                              |       v
 // +-------------------------------+------------------------------+      ---
+//
+//-----------------------------------------------------------------------------
 
 class IcmpHeader
 {
index f563534..78603d4 100644 (file)
@@ -1,5 +1,9 @@
 #include "ipv4_header.h"
 
+//-----------------------------------------------------------------------------
+// Ipv4Header
+//-----------------------------------------------------------------------------
+
 Ipv4Header::Ipv4Header()
 {
     std::fill( rep, rep + sizeof(rep), 0 );
index 3dd4806..796db6e 100644 (file)
@@ -4,6 +4,9 @@
 #include <algorithm>
 #include <boost/asio/ip/address_v4.hpp>
 
+//-----------------------------------------------------------------------------
+// Ipv4Header
+//-----------------------------------------------------------------------------
 // IPv4 header format:
 //
 // 0               8               16                             31
@@ -35,6 +38,8 @@
 // |                                                              |       |
 // |                                                              |       v
 // +--------------------------------------------------------------+      ---
+//
+//-----------------------------------------------------------------------------
 
 class Ipv4Header
 {
index af8288a..4a33cef 100644 (file)
@@ -1,5 +1,9 @@
 #include "pingcheck.h"
 
+//-----------------------------------------------------------------------------
+// PingCheck
+//-----------------------------------------------------------------------------
+
 PingCheck::PingCheck() :
     configuration( NULL ),
     ping_managers()
index eded5c8..14c8341 100644 (file)
@@ -6,6 +6,10 @@
 #include "configuration.h"
 #include "pingmanager.h"
 
+//-----------------------------------------------------------------------------
+// PingCheck
+//-----------------------------------------------------------------------------
+
 class PingCheck
 {
 public:
index ba01a64..f7ad717 100644 (file)
@@ -1,5 +1,9 @@
 #include "pinger.h"
 
+//-----------------------------------------------------------------------------
+// Pinger
+//-----------------------------------------------------------------------------
+
 Pinger::Pinger()
 {
 }
index 3d90504..1786800 100644 (file)
@@ -5,6 +5,10 @@
 
 #include "host.h"
 
+//-----------------------------------------------------------------------------
+// Pinger
+//-----------------------------------------------------------------------------
+
 class Pinger
 {
 public:
index 680cf06..42d693b 100644 (file)
@@ -1,5 +1,9 @@
 #include "pingmanager.h"
 
+//-----------------------------------------------------------------------------
+// PingManager
+//-----------------------------------------------------------------------------
+
 PingManager::PingManager() :
     pinger( NULL ),
     interval( 0 ),
index 536be53..c87aee4 100644 (file)
@@ -4,6 +4,10 @@
 #include "pinger.h"
 #include "host.h"
 
+//-----------------------------------------------------------------------------
+// PingManager
+//-----------------------------------------------------------------------------
+
 class PingManager
 {
 public: