blob: 7c8848b8d3d33d1b29dbc3d473ef7e2c47f82117 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
// $Id$
// author : Boris Kolpackov <boris@kolpackov.net>
#ifndef ACE_RMCAST_FLOW_H
#define ACE_RMCAST_FLOW_H
#include "Stack.h"
#include "Protocol.h"
#include "Bits.h"
#include "Parameters.h"
namespace ACE_RMCast
{
class Flow : public Element
{
public:
Flow (Parameters const& params);
public:
virtual void
send (Message_ptr m);
virtual void
recv (Message_ptr m);
private:
Parameters const& params_;
Mutex mutex_;
ACE_Time_Value nak_time_;
// Throughput sampling.
//
ACE_Time_Value sample_start_time_;
unsigned long sample_bytes_;
double current_tput_;
double cap_tput_;
};
}
#endif // ACE_RMCAST_FLOW_H
|