diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-07-22 14:55:09 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-07-22 14:55:09 +0000 |
commit | 5b4e11fa5d73d9b138e60df36cbaa0a309e56c55 (patch) | |
tree | e2638b4ea58f9265409faf47390de280c042de16 /src/or/or.h | |
parent | 76a6cec3f13ffad26a2c6122a9dc21d08c5da981 (diff) | |
download | tor-5b4e11fa5d73d9b138e60df36cbaa0a309e56c55.tar.gz tor-5b4e11fa5d73d9b138e60df36cbaa0a309e56c55.zip |
Add getinfo logic for accounting; add options for helper nodes
svn:r4632
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h index aa16547cc4..71c2ea0abc 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -1164,6 +1164,9 @@ typedef struct { * such as addresses (0), or do we scrub them first (1)? */ int HardwareAccel; /**< Boolean: Should we enable OpenSSL hardware * acceleration where available? */ + int UseHelperNodes; /**< Boolean: Do we try to enter from a smallish number + * of fixed nodes? */ + int NumHelperNodes; /**< How many helper nodes do we try to establish? */ } or_options_t; #define MAX_SOCKS_REPLY_LEN 1024 @@ -1619,6 +1622,8 @@ int accounting_record_bandwidth_usage(time_t now); void hibernate_begin_shutdown(void); int we_are_hibernating(void); void consider_hibernation(time_t now); +int accounting_getinfo_helper(const char *question, char **answer); + /********************************* main.c ***************************/ |