Tor  0.4.7.0-alpha-dev
Public Member Functions | Data Fields
hs_service_t Struct Reference

#include <hs_service.h>

Public Member Functions

 HT_ENTRY (hs_service_t) hs_service_node
 

Data Fields

char onion_address [HS_SERVICE_ADDR_LEN_BASE32+1]
 
hs_service_state_t state
 
hs_service_keys_t keys
 
hs_service_config_t config
 
hs_service_descriptor_tdesc_current
 
hs_service_descriptor_tdesc_next
 
hs_service_metrics_t metrics
 

Detailed Description

Representation of a service running on this tor instance.

Definition at line 297 of file hs_service.h.

Member Function Documentation

◆ HT_ENTRY()

HT_ENTRY ( hs_service_t  )

Hashtable node: use to look up the service by its master public identity key in the service global map.

Field Documentation

◆ config

◆ desc_current

hs_service_descriptor_t* desc_current

◆ desc_next

◆ keys

◆ metrics

Metrics.

Definition at line 321 of file hs_service.h.

Referenced by hs_metrics_service_init(), hs_metrics_update_by_service(), and init_store().

◆ onion_address

char onion_address[HS_SERVICE_ADDR_LEN_BASE32+1]

Onion address base32 encoded and NUL terminated. We keep it for logging purposes so we don't have to build it every time.

Definition at line 300 of file hs_service.h.

Referenced by write_address_to_file().

◆ state

Service state which contains various flags and counters.

Definition at line 307 of file hs_service.h.

Referenced by can_service_launch_intro_circuit(), hs_circ_handle_introduce2(), move_hs_state(), set_rotation_time(), and should_rotate_descriptors().


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