or_state_t Struct Reference

#include <or.h>


Data Fields

uint32_t _magic
time_t next_write
time_t LastWritten
time_t AccountingIntervalStart
uint64_t AccountingBytesReadInInterval
uint64_t AccountingBytesWrittenInInterval
int AccountingSecondsActive
uint64_t AccountingExpectedUsage
config_line_tEntryGuards
time_t BWHistoryReadEnds
int BWHistoryReadInterval
smartlist_tBWHistoryReadValues
time_t BWHistoryWriteEnds
int BWHistoryWriteInterval
smartlist_tBWHistoryWriteValues
config_line_tBuildtimeHistogram
uint16_t TotalBuildTimes
char * TorVersion
config_line_tExtraLines
time_t LastRotatedOnionKey


Detailed Description

Persistent state for an onion router, as saved to disk.

Field Documentation

The time at which we next plan to write the state to the disk. Equal to TIME_MAX if there are no savable changes, 0 if there are changes that should be saved right away.

Referenced by or_state_load(), or_state_mark_dirty(), and or_state_save().

When was the state last written to disk?

Referenced by or_state_save(), and read_bandwidth_usage().

Fields for accounting bandwidth use.

Referenced by accounting_record_bandwidth_usage(), and read_bandwidth_usage().

A list of Entry Guard-related configuration lines.

Referenced by entry_guards_parse_state(), and entry_guards_update_state().

These fields hold information on the history of bandwidth usage for servers. The "Ends" fields hold the time when we last updated the bandwidth usage. The "Interval" fields hold the granularity, in seconds, of the entries of Values. The "Values" lists hold decimal string representations of the number of bytes read or written in each interval.

Referenced by rep_hist_load_state(), and rep_hist_update_state().

What version of Tor wrote this state file?

Referenced by entry_guards_parse_state(), and or_state_save().

Holds any unrecognized values we found in the state file, in the order in which we found them.

When did we last rotate our onion key? "0" for 'no idea'.

Referenced by init_keys(), and rotate_onion_key().


The documentation for this struct was generated from the following file:

Generated on Tue May 25 00:31:16 2010 for tor by  doxygen 1.5.6