summaryrefslogtreecommitdiffstats
path: root/x11vnc/rates.h
diff options
context:
space:
mode:
Diffstat (limited to 'x11vnc/rates.h')
-rw-r--r--x11vnc/rates.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/x11vnc/rates.h b/x11vnc/rates.h
new file mode 100644
index 0000000..f3d4a79
--- /dev/null
+++ b/x11vnc/rates.h
@@ -0,0 +1,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 */