aboutsummaryrefslogtreecommitdiff
path: root/src/or/main.h
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@gmail.com>2010-12-01 03:32:42 +0200
committerNick Mathewson <nickm@torproject.org>2011-02-22 12:40:38 -0500
commitee95430d397d2382227cdeac8c678c7345df594d (patch)
treef946eeac09e632650c1b038ce6a203c4ab194a6d /src/or/main.h
parent098b6ba72d636cf00cfa091e745c25a649fba493 (diff)
downloadtor-ee95430d397d2382227cdeac8c678c7345df594d.tar
tor-ee95430d397d2382227cdeac8c678c7345df594d.tar.gz
Implement more heartbeat message stuff.
(This squashes multiple commits: * Adds uptime monitoring support. * Adds circuit counting code. * Trivially tweaks the documentation. * Trivial run_scheduled_events() code tweaking. * Adds a status.h to export functions. * Added bandwidth monitoring code. * Added consensus presense detection code. * Restricts the precision of the bandwidth output. * Various fixes. * Fixed style and spacing problems. * Tidied up src/or/Makefile.am * Couple of minor fixes on status.c functions. * 'Implemented' client heartbeat support )
Diffstat (limited to 'src/or/main.h')
-rw-r--r--src/or/main.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/main.h b/src/or/main.h
index 4e15d4dac..49ed5fea5 100644
--- a/src/or/main.h
+++ b/src/or/main.h
@@ -49,6 +49,9 @@ void directory_info_has_arrived(time_t now, int from_cache);
void ip_address_changed(int at_interface);
void dns_servers_relaunch_checks(void);
+long get_uptime(void);
+void get_traffic_stats(uint64_t *in, uint64_t *out);
+
void control_signal_act(int the_signal);
void handle_signals(int is_parent);