18 #define CONTROL_CONN_STATE_MIN_ 1
20 #define CONTROL_CONN_STATE_OPEN 1
23 #define CONTROL_CONN_STATE_NEEDAUTH 2
24 #define CONTROL_CONN_STATE_MAX_ 2
33 #define LOG_FN_CONN(conn, args) \
34 CONN_LOG_PROTECT(conn, log_fn args)
36 #define CC_LOCAL_FD_IS_OWNER (1u<<0)
37 #define CC_LOCAL_FD_IS_AUTHENTICATED (1u<<1)
54 #ifdef CONTROL_MODULE_PRIVATE
55 struct signal_name_t {
57 const char *signal_name;
59 extern const struct signal_name_t signal_table[];
60 int get_cached_network_liveness(
void);
61 void set_cached_network_liveness(
int liveness);
64 #ifdef CONTROL_PRIVATE
67 char **current_cmd_out);
STATIC char * control_split_incoming_command(char *incoming_cmd, size_t *data_len, char **current_cmd_out)
void control_ports_write_to_file(void)
int control_connection_add_local_fd(tor_socket_t sock, unsigned flags)
void disable_control_logging(void)
void control_free_all(void)
int connection_control_reached_eof(control_connection_t *conn)
void enable_control_logging(void)
void connection_control_closed(control_connection_t *conn)
const char * rend_auth_type_to_string(rend_auth_type_t auth_type)
void monitor_owning_controller_process(const char *process_spec)
int connection_control_finished_flushing(control_connection_t *conn)
int connection_control_process_inbuf(control_connection_t *conn)
control_connection_t * TO_CONTROL_CONN(connection_t *)
const control_connection_t * CONST_TO_CONTROL_CONN(const connection_t *)