comparison runopts.h @ 575:f9b5dc0cba61

- Disable compression for non-final multihops
author Matt Johnston <matt@ucc.asn.au>
date Fri, 11 Sep 2009 14:02:04 +0000
parents 005530560594
children 4edea9f363d0
comparison
equal deleted inserted replaced
574:b6665c1eac43 575:f9b5dc0cba61
37 int listen_fwd_all; 37 int listen_fwd_all;
38 #endif 38 #endif
39 unsigned int recv_window; 39 unsigned int recv_window;
40 time_t keepalive_secs; 40 time_t keepalive_secs;
41 time_t idle_timeout_secs; 41 time_t idle_timeout_secs;
42
43 #ifndef DISABLE_ZLIB
44 /* TODO: add a commandline flag. Currently this is on by default if compression
45 * is compiled in, but disabled for a client's non-final multihop stages. (The
46 * intermediate stages are compressed streams, so are uncompressible. */
47 int enable_compress;
48 #endif
49
42 50
43 } runopts; 51 } runopts;
44 52
45 extern runopts opts; 53 extern runopts opts;
46 54
133 unsigned int netcat_port; 141 unsigned int netcat_port;
134 #endif 142 #endif
135 #ifdef ENABLE_CLI_PROXYCMD 143 #ifdef ENABLE_CLI_PROXYCMD
136 char *proxycmd; 144 char *proxycmd;
137 #endif 145 #endif
138
139 } cli_runopts; 146 } cli_runopts;
140 147
141 extern cli_runopts cli_opts; 148 extern cli_runopts cli_opts;
142 void cli_getopts(int argc, char ** argv); 149 void cli_getopts(int argc, char ** argv);
143 150