GreenCloud Simulator
tskcomsink.h
Go to the documentation of this file.
1 /* -*- Mode:C++; c-basic-offset:8; tab-width:8; indent-tabs-mode:t -*- */
2 /*
3  */
4 
5 #ifndef ns_tskcomsink_h
6 #define ns_tskcomsink_h
7 
8 #include <tclcl.h>
9 
10 #include "agent.h"
11 #include "config.h"
12 #include "packet.h"
13 #include "resourceprovider.h"
14 #include "ip.h"
15 #include "rtp.h"
16 #include "cloudtask.h"
17 #include "bytecounter.h"
18 
19 class TskComSink : public Agent, public ByteCounter {
20 public:
21  TskComSink();
22  virtual ~TskComSink();
24  virtual int command(int argc, const char*const* argv);
25  virtual void recv(Packet* pkt, Handler*);
26 
27 protected:
28  int nlost_;
29  int npkts_;
30  int expected_;
31  int bytes_;
32  int seqno_;
34 
35 
37 };
38 
39 #endif
int bytes_
Definition: tskcomsink.h:31
double last_packet_time_
Definition: tskcomsink.h:33
int nlost_
Definition: tskcomsink.h:28
int seqno_
Definition: tskcomsink.h:32
int npkts_
Definition: tskcomsink.h:29
int expected_
Definition: tskcomsink.h:30
ResourceProvider * res_provider_
Definition: tskcomsink.h:36
virtual int command(int argc, const char *const *argv)
Definition: tskcomsink.cc:80
virtual ~TskComSink()
Definition: tskcomsink.cc:45
virtual void recv(Packet *pkt, Handler *)
Definition: tskcomsink.cc:50
void addResourceProvider(ResourceProvider *newrp)
Definition: tskcomsink.cc:70