tor  master
Data Fields
control_connection_t Struct Reference

#include <or.h>

Collaboration diagram for control_connection_t:
Collaboration graph
[legend]

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
 

Detailed Description

Subtype of connection_t for an connection to a controller.

Field Documentation

◆ ephemeral_onion_services

smartlist_t* ephemeral_onion_services

List of ephemeral onion services belonging to this connection.

◆ event_mask

uint64_t event_mask

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

◆ have_sent_protocolinfo

unsigned int have_sent_protocolinfo

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

◆ incoming_cmd

char* incoming_cmd

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

◆ incoming_cmd_cur_len

uint32_t incoming_cmd_cur_len

Number of bytes currently stored in incoming_cmd.

◆ incoming_cmd_len

uint32_t incoming_cmd_len

Amount of space allocated in incoming_cmd.

◆ is_owning_control_connection

unsigned int is_owning_control_connection

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

◆ safecookie_client_hash

char* 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.


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