Using inheritance to commute between pingers
authorGuilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
Thu, 23 Jun 2011 18:40:43 +0000 (15:40 -0300)
committerGuilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
Thu, 23 Jun 2011 18:40:43 +0000 (15:40 -0300)
src/icmp/icmppinger.h

index 992917b..a64fd39 100644 (file)
@@ -10,6 +10,8 @@
 #include <boost/asio.hpp>
 #include <boost/function.hpp>
 
+#include "host/pinger.h"
+
 class IcmpPacket;
 
 //-----------------------------------------------------------------------------
@@ -20,7 +22,7 @@ class IcmpPacket;
  * @brief This class performs ping to host using Boost Asio.
  * Scope: one object per host.
  */
-class IcmpPinger
+class IcmpPinger : public Pinger
 {
 public:
     IcmpPinger(