Back to index

tor  0.2.3.19-rc
Public Types | Public Attributes
dir_connection_t Struct Reference

Subtype of connection_t for an "directory connection" -- that is, an HTTP connection to retrieve or serve directory material. More...

#include <or.h>

Collaboration diagram for dir_connection_t:
Collaboration graph
[legend]

List of all members.

Public Types

enum  {
  DIR_SPOOL_NONE = 0, DIR_SPOOL_SERVER_BY_DIGEST, DIR_SPOOL_SERVER_BY_FP, DIR_SPOOL_EXTRA_BY_DIGEST,
  DIR_SPOOL_EXTRA_BY_FP, DIR_SPOOL_CACHED_DIR, DIR_SPOOL_NETWORKSTATUS, DIR_SPOOL_MICRODESC
}
 What exactly are we spooling right now? More...

Public Attributes

connection_t _base
char * requested_resource
 Which 'resource' did we ask the directory for? This is typically the part of the URL string that defines, relative to the directory conn purpose, what thing we want.
unsigned int dirconn_direct:1
 Is this dirconn direct, or via Tor?
enum dir_connection_t:: { ... }  dir_spool_src
 What exactly are we spooling right now?
uint8_t router_purpose
 If we're fetching descriptors, what router purpose shall we assign to them?
smartlist_tfingerprint_stack
 List of fingerprints for networkstatuses or descriptors to be spooled.
struct cached_dir_tcached_dir
 A cached_dir_t object that we're currently spooling out.
off_t cached_dir_offset
 The current offset into cached_dir.
tor_zlib_state_tzlib_state
 The zlib object doing on-the-fly compression for spooled data.
rend_data_trend_data
 What rendezvous service are we querying for?
char identity_digest [DIGEST_LEN]
 Hash of the public RSA key for the directory server's signing key.

Detailed Description

Subtype of connection_t for an "directory connection" -- that is, an HTTP connection to retrieve or serve directory material.

Definition at line 1411 of file or.h.


Member Enumeration Documentation

anonymous enum

What exactly are we spooling right now?

Enumerator:
DIR_SPOOL_NONE 
DIR_SPOOL_SERVER_BY_DIGEST 
DIR_SPOOL_SERVER_BY_FP 
DIR_SPOOL_EXTRA_BY_DIGEST 
DIR_SPOOL_EXTRA_BY_FP 
DIR_SPOOL_CACHED_DIR 
DIR_SPOOL_NETWORKSTATUS 
DIR_SPOOL_MICRODESC 

Definition at line 1427 of file or.h.


Member Data Documentation

Definition at line 1412 of file or.h.

A cached_dir_t object that we're currently spooling out.

Definition at line 1439 of file or.h.

The current offset into cached_dir.

Definition at line 1441 of file or.h.

What exactly are we spooling right now?

Is this dirconn direct, or via Tor?

Definition at line 1421 of file or.h.

List of fingerprints for networkstatuses or descriptors to be spooled.

Definition at line 1437 of file or.h.

Hash of the public RSA key for the directory server's signing key.

Definition at line 1448 of file or.h.

What rendezvous service are we querying for?

Definition at line 1446 of file or.h.

Which 'resource' did we ask the directory for? This is typically the part of the URL string that defines, relative to the directory conn purpose, what thing we want.

For example, in router descriptor downloads by descriptor digest, it contains "d/", then one ore more +-separated fingerprints.

Definition at line 1420 of file or.h.

If we're fetching descriptors, what router purpose shall we assign to them?

Definition at line 1435 of file or.h.

The zlib object doing on-the-fly compression for spooled data.

Definition at line 1443 of file or.h.


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