summaryrefslogtreecommitdiff
path: root/modules/CIAO/connectors/dds4ccm/performance-tests/Throughput/Base/Throughput_Base.idl
blob: 80da6020c57f33c7ad4503d417305cc81081eedb (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$

/**
 * @file Throughput_Base.idl
 * @author Marijke Hengstmengel <mhengstmengel@remedy.nl>
 */

#ifndef THROUGHPUT_BASE_IDL
#define THROUGHPUT_BASE_IDL

#pragma ndds typesupport "Base/Throughput_BaseSupport.h"

const short MAX_DATA_SEQUENCE_LENGTH = 8192;

typedef enum ThroughputCommandKind
{
    THROUGHPUT_COMMAND_IDLE,
    THROUGHPUT_COMMAND_START,
    THROUGHPUT_COMMAND_COMPLETE
} CommandKind;

typedef sequence<octet, MAX_DATA_SEQUENCE_LENGTH> OctetSeq;

struct ThroughputTest {
 long key;
 unsigned long long seq_num;
 OctetSeq data;
 };

typedef sequence<ThroughputTest> ThroughputTestSeq;

struct ThroughputCommand
{
    CommandKind  command;
    unsigned long data_length;
    unsigned long long current_publisher_effort;
    unsigned long long final_publisher_effort;
};

typedef sequence<ThroughputCommand> ThroughputCommandSeq;

#endif