summaryrefslogtreecommitdiff
path: root/src/or/router.h
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2012-03-31 13:54:09 +0200
committerGeorge Kadianakis <desnacked@riseup.net>2012-03-31 13:54:09 +0200
commitfedf76a2e6452124c38ecc51cea6567b9d5cc23d (patch)
tree9e312986c70ae482346cb8f35ac9a0748692df99 /src/or/router.h
parentda6e0993dc4a0037933a522e2f578c145f6538cc (diff)
downloadtor-fedf76a2e6452124c38ecc51cea6567b9d5cc23d.tar.gz
tor-fedf76a2e6452124c38ecc51cea6567b9d5cc23d.zip
Introduce and use router_get_active_listener_port_by_type().
router_get_active_listener_port_by_type() iterates all connections, trying to find a listener of a specific type, and returns its TCP port.
Diffstat (limited to 'src/or/router.h')
-rw-r--r--src/or/router.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/router.h b/src/or/router.h
index fb914349f3..294736e70c 100644
--- a/src/or/router.h
+++ b/src/or/router.h
@@ -53,6 +53,7 @@ int authdir_mode_publishes_statuses(const or_options_t *options);
int authdir_mode_tests_reachability(const or_options_t *options);
int authdir_mode_bridge(const or_options_t *options);
+uint16_t router_get_active_listener_port_by_type(int listener_type);
uint16_t router_get_advertised_or_port(const or_options_t *options);
uint16_t router_get_advertised_dir_port(const or_options_t *options,
uint16_t dirport);