tp.h

Go to the documentation of this file.
00001 #ifndef ns_tp_h
00002 #define ns_tp_h
00003 
00004 #include "agent.h"
00005 #include "trafgen.h"
00006 #include "packet.h"
00007 
00008 #define SAMPLERATE 8000
00009 
00010 class TPAgent : public Agent {
00011 public:
00012   TPAgent();
00013   TPAgent(packet_t);
00014   
00015   virtual void sendto(int nbytes, unsigned int saddr, int sport, unsigned int daddr, int dport);
00016     
00017   virtual void recv(Packet* pkt, Handler*);
00018   virtual int command(int argc, const char*const* argv);
00019   
00020 protected:
00021   int seqno_;
00022 };
00023 
00024 #endif

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