
#ifndef SINK_H
#define SINK_H

#include "packet.h"

/**
 *  Sink is the abstract class for a special receiving application in Orbit Testebed.
 *  Sink is also responsible to report OML measuremnts, so each sink is bind to an application object
 *  Contrary to Traffic Generator, Sink is the traffic terminator. It simply discards
 *  every received packet.
 *
 */

class Sink
{
 public: 
  inline Sink(){pRcvd_ = NULL;}
  virtual ~Sink(){}
  /** get the packet dump
   *  @return a packet pointer
   */
  //inline char* getDump(){return msgDump_;}
  virtual void handlePkt(Packet* pkt) = 0 ;
 protected:
  Packet *pRcvd_;
 
};
#endif
