ns-tutorial/examples/ping.h

Go to the documentation of this file.
00001 /*
00002  * File: Header File for a new 'Ping' Agent Class for the ns
00003  *       network simulator
00004  * Author: Marc Greis (greis@cs.uni-bonn.de), May 1998
00005  *
00006  */
00007 
00008 
00009 #ifndef ns_ping_h
00010 #define ns_ping_h
00011 
00012 #include "agent.h"
00013 #include "tclcl.h"
00014 #include "packet.h"
00015 #include "address.h"
00016 #include "ip.h"
00017 
00018 
00019 struct hdr_ping {
00020   char ret;
00021   double send_time;
00022 };
00023 
00024 
00025 class PingAgent : public Agent {
00026  public:
00027   PingAgent();
00028   int command(int argc, const char*const* argv);
00029   void recv(Packet*, Handler*);
00030  protected:
00031   int off_ping_;
00032 };
00033 
00034 
00035 #endif

Generated on Tue Mar 6 16:47:49 2007 for ns2 Network Simulator 2.29 by  doxygen 1.4.6