Tor  0.4.4.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
 

Detailed Description

Representation of a service running on this tor instance.

Definition at line 293 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

◆ 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 everytime.

Definition at line 296 of file hs_service.h.

Referenced by write_address_to_file().

◆ state

Service state which contains various flags and counters.

Definition at line 303 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: