Tor 0.4.9.3-alpha-dev
|
#include <cached_dir_st.h>
Data Fields | |
char * | dir |
char * | dir_compressed |
size_t | dir_len |
size_t | dir_compressed_len |
time_t | published |
common_digests_t | digests |
uint8_t | digest_sha3_as_signed [DIGEST256_LEN] |
int | refcnt |
A cached_dir_t represents a cacheable directory object, along with its compressed form.
Definition at line 17 of file cached_dir_st.h.
uint8_t digest_sha3_as_signed[DIGEST256_LEN] |
Sha3 digest (also ns only)
Definition at line 25 of file cached_dir_st.h.
Referenced by dir_consensus_request_set_additional_headers(), and dirserv_set_cached_consensus_networkstatus().
common_digests_t digests |
Digests of this object (networkstatus only)
Definition at line 23 of file cached_dir_st.h.
Referenced by dirserv_set_cached_consensus_networkstatus().
char* dir |
Contents of this object, NUL-terminated.
Definition at line 18 of file cached_dir_st.h.
Referenced by clear_cached_dir(), dirvote_perform_vote(), getinfo_helper_current_consensus(), handle_response_fetch_consensus(), and new_cached_dir().
char* dir_compressed |
Compressed contents of this object.
Definition at line 19 of file cached_dir_st.h.
Referenced by clear_cached_dir(), new_cached_dir(), and spooled_resource_flush_some().
size_t dir_compressed_len |
Length of dir_compressed.
Definition at line 21 of file cached_dir_st.h.
Referenced by new_cached_dir(), spooled_resource_estimate_size(), and spooled_resource_flush_some().
size_t dir_len |
Length of dir (not counting its NUL).
Definition at line 20 of file cached_dir_st.h.
Referenced by dirvote_perform_vote(), handle_response_fetch_consensus(), new_cached_dir(), and spooled_resource_estimate_size().
time_t published |
When was this object published.
Definition at line 22 of file cached_dir_st.h.
Referenced by dir_consensus_request_set_additional_headers(), new_cached_dir(), and spooled_resource_lookup_cached_dir().
int refcnt |
Reference count for this cached_dir_t.
Definition at line 26 of file cached_dir_st.h.
Referenced by cached_dir_decref(), new_cached_dir(), and spooled_resource_flush_some().