Tor
0.4.7.0-alpha-dev
|
Header file for control.c. More...
Go to the source code of this file.
Macros | |
#define | CONTROL_CONN_STATE_MIN_ 1 |
#define | CONTROL_CONN_STATE_OPEN 1 |
#define | CONTROL_CONN_STATE_NEEDAUTH 2 |
#define | CONTROL_CONN_STATE_MAX_ 2 |
#define | LOG_FN_CONN(conn, args) CONN_LOG_PROTECT(conn, log_fn args) |
#define | CC_LOCAL_FD_IS_OWNER (1u<<0) |
#define | CC_LOCAL_FD_IS_AUTHENTICATED (1u<<1) |
Functions | |
control_connection_t * | TO_CONTROL_CONN (connection_t *) |
const control_connection_t * | CONST_TO_CONTROL_CONN (const connection_t *) |
void | control_ports_write_to_file (void) |
int | control_connection_add_local_fd (tor_socket_t sock, unsigned flags) |
int | connection_control_finished_flushing (control_connection_t *conn) |
int | connection_control_reached_eof (control_connection_t *conn) |
void | connection_control_closed (control_connection_t *conn) |
int | connection_control_process_inbuf (control_connection_t *conn) |
void | disable_control_logging (void) |
void | enable_control_logging (void) |
void | monitor_owning_controller_process (const char *process_spec) |
const char * | rend_auth_type_to_string (rend_auth_type_t auth_type) |
void | control_free_all (void) |
#define CONTROL_CONN_STATE_NEEDAUTH 2 |
#define CONTROL_CONN_STATE_OPEN 1 |
#define LOG_FN_CONN | ( | conn, | |
args | |||
) | CONN_LOG_PROTECT(conn, log_fn args) |
void connection_control_closed | ( | control_connection_t * | conn | ) |
int connection_control_finished_flushing | ( | control_connection_t * | conn | ) |
Called when conn has no more bytes left on its outbuf.
Definition at line 201 of file control.c.
Referenced by connection_finished_flushing().
int connection_control_process_inbuf | ( | control_connection_t * | conn | ) |
Called when data has arrived on a v1 control connection: Try to fetch commands from conn->inbuf, and execute them.
Definition at line 418 of file control.c.
Referenced by connection_process_inbuf().
int connection_control_reached_eof | ( | control_connection_t * | conn | ) |
Called when conn has gotten its socket closed.
Definition at line 209 of file control.c.
Referenced by connection_reached_eof().
const control_connection_t* CONST_TO_CONTROL_CONN | ( | const connection_t * | c | ) |
Cast a const connection_t *
to a const control_connection_t *
.
Exit with an assertion failure if the input is not a control_connection_t
.
int control_connection_add_local_fd | ( | tor_socket_t | sock, |
unsigned | flags | ||
) |
void control_free_all | ( | void | ) |
void control_ports_write_to_file | ( | void | ) |
void disable_control_logging | ( | void | ) |
Called when we are sending a log message to the controllers: suspend sending further log messages to the controllers until we're done. Used by CONN_LOG_PROTECT.
Definition at line 1341 of file control_events.c.
void enable_control_logging | ( | void | ) |
We're done sending a log message to the controllers: re-enable controller logging. Used by CONN_LOG_PROTECT.
Definition at line 1349 of file control_events.c.
void monitor_owning_controller_process | ( | const char * | process_spec | ) |
const char* rend_auth_type_to_string | ( | rend_auth_type_t | auth_type | ) |
Convert rendezvous auth type to string for HS_DESC control events
Definition at line 1925 of file control_events.c.
control_connection_t* TO_CONTROL_CONN | ( | connection_t * | c | ) |
Cast a connection_t *
to a control_connection_t *
.
Exit with an assertion failure if the input is not a control_connection_t
.
Definition at line 71 of file control.c.
Referenced by connection_finished_flushing(), connection_free_all(), connection_process_inbuf(), connection_reached_eof(), and CONST_TO_CONTROL_CONN().