Statistics
| Branch: | Revision:

streamers / measures.h @ 7f591208

History | View | Annotate | Download (708 Bytes)

1
/*
2
 *  Copyright (c) 2010 Csaba Kiraly
3
 *
4
 *  This is free software; see gpl-3.0.txt
5
 */
6
#ifndef MEASURES_H
7
#define MEASURES_H
8

    
9
#include <stdbool.h>
10

    
11
struct nodeID;
12

    
13
void init_measures();
14
void add_measures(struct nodeID *id);
15
void delete_measures(struct nodeID *id);
16

    
17
void reg_chunk_duplicate();
18
void reg_chunk_playout(int id, bool b, uint64_t timestamp);
19
void reg_neigh_size(int s);
20
void reg_chunk_receive(int id, uint64_t timestamp, int hopcount);
21
void reg_chunk_send(int id);
22
void reg_offer_accept(bool b);
23

    
24
#ifdef MONL
25
double get_rtt(struct nodeID *id);
26
double get_lossrate(struct nodeID *id);
27
double get_average_lossrate(struct  nodeID**id, int len);
28
int get_hopcount(struct nodeID *id);
29
#endif
30

    
31
#endif