tor  0.4.2.0-alpha-dev
Data Fields
control_connection_t Struct Reference

#include <control_connection_st.h>

Data Fields

connection_t base_
 
uint64_t event_mask
 
unsigned int have_sent_protocolinfo:1
 
unsigned int is_owning_control_connection:1
 
smartlist_tephemeral_onion_services
 
char * safecookie_client_hash
 
uint32_t incoming_cmd_len
 
uint32_t incoming_cmd_cur_len
 
char * incoming_cmd
 
char * current_cmd
 

Detailed Description

Subtype of connection_t for an connection to a controller.

Definition at line 14 of file control_connection_st.h.

Field Documentation

◆ current_cmd

char* control_connection_t::current_cmd

The control command that we are currently processing.

Definition at line 44 of file control_connection_st.h.

Referenced by handle_control_command(), and handle_single_control_command().

◆ ephemeral_onion_services

smartlist_t* control_connection_t::ephemeral_onion_services

List of ephemeral onion services belonging to this connection.

Definition at line 28 of file control_connection_st.h.

Referenced by connection_control_closed(), and getinfo_helper_onions().

◆ event_mask

uint64_t control_connection_t::event_mask

Bitfield: which events does this controller care about? EVENT_MAX_ is >31, so we need a 64 bit mask

Definition at line 17 of file control_connection_st.h.

Referenced by connection_control_closed(), and handle_control_resolve().

◆ have_sent_protocolinfo

unsigned int control_connection_t::have_sent_protocolinfo

True if we have sent a protocolinfo reply on this connection.

Definition at line 22 of file control_connection_st.h.

Referenced by handle_control_protocolinfo(), and is_valid_initial_command().

◆ incoming_cmd

char* control_connection_t::incoming_cmd

A control command that we're reading from the inbuf, but which has not yet arrived completely.

Definition at line 42 of file control_connection_st.h.

Referenced by connection_control_process_inbuf().

◆ incoming_cmd_cur_len

uint32_t control_connection_t::incoming_cmd_cur_len

Number of bytes currently stored in incoming_cmd.

Definition at line 39 of file control_connection_st.h.

◆ incoming_cmd_len

uint32_t control_connection_t::incoming_cmd_len

Amount of space allocated in incoming_cmd.

Definition at line 37 of file control_connection_st.h.

◆ is_owning_control_connection

unsigned int control_connection_t::is_owning_control_connection

True if we have received a takeownership command on this connection.

Definition at line 25 of file control_connection_st.h.

Referenced by handle_control_dropownership(), and handle_control_takeownership().

◆ safecookie_client_hash

char* control_connection_t::safecookie_client_hash

If we have sent an AUTHCHALLENGE reply on this connection and have not received a successful AUTHENTICATE command, points to the value which the client must send to authenticate itself; otherwise, NULL.

Definition at line 34 of file control_connection_st.h.

Referenced by is_valid_initial_command().


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