root / otg / trunk / src / cpp / sink.h

Revision 547, 0.6 kB (checked in by zhibinwu, 3 years ago)

Fix all warning messages, clean build

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1
2#ifndef SINK_H
3#define SINK_H
4
5#include "packet.h"
6
7/**
8 *  Sink is the abstract class for a special receiving application in Orbit Testebed.
9 *  Sink is also responsible to report OML measuremnts, so each sink is bind to an application object
10 *  Contrary to Traffic Generator, Sink is the traffic terminator. It simply discards
11 *  every received packet.
12 *
13 */
14
15class Sink
16{
17 public: 
18  inline Sink(){pRcvd_ = NULL;}
19  virtual ~Sink(){}
20  /** get the packet dump
21   *  @return a packet pointer
22   */
23  //inline char* getDump(){return msgDump_;}
24  virtual void handlePkt(Packet* pkt) = 0 ;
25 protected:
26  Packet *pRcvd_;
27 
28};
29#endif
Note: See TracBrowser for help on using the browser.