Statistics
| Branch: | Revision:

streamers / measures.h @ 14e5c21e

History | View | Annotate | Download (781 Bytes)

1 7f591208 Csaba Kiraly
/*
2
 *  Copyright (c) 2010 Csaba Kiraly
3
 *
4
 *  This is free software; see gpl-3.0.txt
5
 */
6 6dad7ee8 Csaba Kiraly
#ifndef MEASURES_H
7
#define MEASURES_H
8
9
#include <stdbool.h>
10
11 0bb2425e Csaba Kiraly
struct nodeID;
12
13 b7e82bd2 Csaba Kiraly
void init_measures();
14 a8a31ce0 Csaba Kiraly
void end_measures();
15 4bf91643 Csaba Kiraly
void add_measures(struct nodeID *id);
16
void delete_measures(struct nodeID *id);
17 9c4f8e7e Csaba Kiraly
18 6dad7ee8 Csaba Kiraly
void reg_chunk_duplicate();
19 19d6b4ca Csaba Kiraly
void reg_chunk_playout(int id, bool b, uint64_t timestamp);
20 6dad7ee8 Csaba Kiraly
void reg_neigh_size(int s);
21 14e5c21e Csaba Kiraly
void reg_chunk_receive(int id, uint64_t timestamp, int hopcount, bool old, bool dup);
22 88e094f7 Csaba Kiraly
void reg_chunk_send(int id);
23 80ab1a60 Csaba Kiraly
void reg_offer_accept(bool b);
24 6dad7ee8 Csaba Kiraly
25 9c4f8e7e Csaba Kiraly
#ifdef MONL
26 74a5d4ae CsabaKiraly
double get_rtt(struct nodeID *id);
27
double get_lossrate(struct nodeID *id);
28
double get_average_lossrate(struct  nodeID**id, int len);
29
int get_hopcount(struct nodeID *id);
30 65e2b5a8 CsabaKiraly
double get_receive_delay(void);
31 9c4f8e7e Csaba Kiraly
#endif
32
33 88e094f7 Csaba Kiraly
#endif