diff options
author | Roger Dingledine <arma@torproject.org> | 2005-08-13 00:22:07 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-08-13 00:22:07 +0000 |
commit | 87fcd60aa29afc07ed1cfe8d5999bca63591bf52 (patch) | |
tree | 93dc45c25247d745ae8287d59f591da66c0079d6 /src/or/rendservice.c | |
parent | d1c094637dee46493f2be435e2b37588bfe5331b (diff) | |
download | tor-87fcd60aa29afc07ed1cfe8d5999bca63591bf52.tar.gz tor-87fcd60aa29afc07ed1cfe8d5999bca63591bf52.zip |
predict required circuits better, with an eye toward making
hidden services faster on the service end.
svn:r4772
Diffstat (limited to 'src/or/rendservice.c')
-rw-r--r-- | src/or/rendservice.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/or/rendservice.c b/src/or/rendservice.c index 2ed1584e02..5511f46ab8 100644 --- a/src/or/rendservice.c +++ b/src/or/rendservice.c @@ -61,6 +61,13 @@ typedef struct rend_service_t { */ static smartlist_t *rend_service_list = NULL; +/** Return the number of rendezvous services we have configured. */ +int num_rend_services(void) { + if (!rend_service_list) + return 0; + return smartlist_len(rend_service_list); +} + /** Release the storage held by <b>service</b>. */ static void |