summaryrefslogtreecommitdiffstats
path: root/x11vnc/rates.h
blob: f3d4a79f034011344907f42313c9b8131d3ff080 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef _X11VNC_RATES_H
#define _X11VNC_RATES_H

/* -- rates.h -- */

extern int measure_speeds;
extern int speeds_net_rate;
extern int speeds_net_rate_measured;
extern int speeds_net_latency;
extern int speeds_net_latency_measured;
extern int speeds_read_rate;
extern int speeds_read_rate_measured;

extern int get_cmp_rate(void);
extern int get_raw_rate(void);
extern void initialize_speeds(void);
extern int get_read_rate(void);
extern int link_rate(int *latency, int *netrate);
extern int get_net_rate(void);
extern int get_net_latency(void);
extern void measure_send_rates(int init);

#endif /* _X11VNC_RATES_H */