File: tp.h

package info (click to toggle)
ns2 2.35%2Bdfsg-2.1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 78,780 kB
  • ctags: 27,490
  • sloc: cpp: 172,923; tcl: 107,130; perl: 6,391; sh: 6,143; ansic: 5,846; makefile: 816; awk: 525; csh: 355
file content (24 lines) | stat: -rw-r--r-- 437 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef ns_tp_h
#define ns_tp_h

#include "agent.h"
#include "trafgen.h"
#include "packet.h"

#define SAMPLERATE 8000

class TPAgent : public Agent {
public:
  TPAgent();
  TPAgent(packet_t);
  
  virtual void sendto(int nbytes, unsigned int saddr, int sport, unsigned int daddr, int dport);
    
  virtual void recv(Packet* pkt, Handler*);
  virtual int command(int argc, const char*const* argv);
  
protected:
  int seqno_;
};

#endif