Tor 0.4.9.3-alpha-dev
|
#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_t * | ephemeral_onion_services |
char * | safecookie_client_hash |
uint32_t | incoming_cmd_len |
uint32_t | incoming_cmd_cur_len |
char * | incoming_cmd |
char * | current_cmd |
Subtype of connection_t for an connection to a controller.
Definition at line 19 of file control_connection_st.h.
connection_t base_ |
Definition at line 20 of file control_connection_st.h.
char* current_cmd |
The control command that we are currently processing.
Definition at line 49 of file control_connection_st.h.
Referenced by connection_control_process_inbuf(), connection_free_minimal(), handle_control_command(), handle_control_obsolete(), and handle_single_control_command().
smartlist_t* ephemeral_onion_services |
List of ephemeral onion services belonging to this connection.
Definition at line 33 of file control_connection_st.h.
Referenced by connection_control_closed(), connection_free_minimal(), getinfo_helper_onions(), handle_control_add_onion(), and handle_control_del_onion().
uint64_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 22 of file control_connection_st.h.
Referenced by connection_control_closed(), handle_control_resolve(), and handle_control_setevents().
unsigned int have_sent_protocolinfo |
True if we have sent a protocolinfo reply on this connection.
Definition at line 27 of file control_connection_st.h.
Referenced by handle_control_protocolinfo(), and is_valid_initial_command().
char* incoming_cmd |
A control command that we're reading from the inbuf, but which has not yet arrived completely.
Definition at line 47 of file control_connection_st.h.
Referenced by connection_control_process_inbuf(), and connection_free_minimal().
uint32_t incoming_cmd_cur_len |
Number of bytes currently stored in incoming_cmd.
Definition at line 44 of file control_connection_st.h.
Referenced by connection_control_process_inbuf().
uint32_t incoming_cmd_len |
Amount of space allocated in incoming_cmd.
Definition at line 42 of file control_connection_st.h.
Referenced by connection_control_process_inbuf().
unsigned int is_owning_control_connection |
True if we have received a takeownership command on this connection.
Definition at line 30 of file control_connection_st.h.
Referenced by connection_control_closed(), control_connection_add_local_fd(), handle_control_dropownership(), and handle_control_takeownership().
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.
Definition at line 39 of file control_connection_st.h.
Referenced by connection_free_minimal(), handle_control_authchallenge(), handle_control_authenticate(), and is_valid_initial_command().