blob: 2b27d49688cfaa549fe7cf151e6b88ccb9fc976d (
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
|
//
// $Id$
//
/// A simple module to avoid namespace pollution
module Test
{
/// Use a timestamp to measure the roundtrip delay
typedef unsigned long long Timestamp;
interface Session;
interface Callback;
/// Create sessions to measure roundtrip delays
interface Session_Factory
{
/// Return a new session
Session create_new_session (in Callback the_callback);
/// Shutdown the server
void shutdown ();
};
/// Each experiment is ran using completely separate
interface Session
{
/// Run one iteration of the experiment
void sample (in Timestamp the_timestamp);
/// Destroy the session
void shutdown ();
};
interface Callback
{
/// Measure one iteration
void sample (in Timestamp the_timestamp);
};
};
|