• Main Page
  • Classes
  • Files
  • File List

/Users/yzchen/ns/ns-allinone-2.33/ns-2.33/tutorial_greis/ping.h

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 Aug 10 2010 16:16:06 for ns-2.33 by  doxygen 1.7.1