diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-09-13 21:14:55 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-09-13 21:14:55 +0000 |
commit | 4efa652a9859fde96ff9bf18817479ed67a3ccac (patch) | |
tree | 0bee32144a83755b42c7ae111f3d0766a30d084a /src/or/or.h | |
parent | 76351b8416057690f2f344cc0a614caa183561c1 (diff) | |
download | tor-4efa652a9859fde96ff9bf18817479ed67a3ccac.tar tor-4efa652a9859fde96ff9bf18817479ed67a3ccac.tar.gz |
add docs, fix whitespace, and make ANY rule in routerparse a little tighter.
svn:r5031
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/src/or/or.h b/src/or/or.h index cd51a0624..b102e766b 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -2020,14 +2020,18 @@ void router_free_all_keys(void); /********************************* routerlist.c ***************************/ +/** Represents information about a single trusted directory server. */ typedef struct trusted_dir_server_t { - char *address; - uint32_t addr; - uint16_t dir_port; - char digest[DIGEST_LEN]; - unsigned int is_running:1; - unsigned int supports_v1_protocol:1; - int n_networkstatus_failures; + char *address; /**< Hostname */ + uint32_t addr; /**< IPv4 address */ + uint16_t dir_port; /**< Directory port */ + char digest[DIGEST_LEN]; /**< Digest of identity key */ + unsigned int is_running:1; /**< True iff we think this server is running. */ + unsigned int supports_v1_protocol:1; /**< True iff this server is an + * authority for the older ("v1") + * directory protocol.*/ + int n_networkstatus_failures; /**< How many times have we asked for this + * server's network-status unsuccessfully? */ } trusted_dir_server_t; int router_reload_router_list(void); |