control_fmt.h File Reference

Go to the source code of this file.


int write_stream_target_to_buf (entry_connection_t *conn, char *buf, size_t len)
void orconn_target_get_name (char *buf, size_t len, or_connection_t *conn)
char * circuit_describe_status_for_controller (origin_circuit_t *circ)
 MOCK_DECL (const char *, node_describe_longname_by_id,(const char *id_digest))

Detailed Description

Header file for control_fmt.c.

Definition in file control_fmt.h.

Function Documentation

◆ circuit_describe_status_for_controller()

char* circuit_describe_status_for_controller ( origin_circuit_t circ)

◆ orconn_target_get_name()

void orconn_target_get_name ( char *  name,
size_t  len,
or_connection_t conn 

Figure out the best name for the target router of an OR connection conn, and write it into the len-character buffer name.

Definition at line 54 of file control_fmt.c.

◆ write_stream_target_to_buf()

int write_stream_target_to_buf ( entry_connection_t conn,
char *  buf,
size_t  len 

Given an AP connection conn and a len-character buffer buf, determine the address:port combination requested on conn, and write it to buf. Return 0 on success, -1 on failure.

Definition at line 32 of file control_fmt.c.

References socks_request_t::address, entry_connection_t::chosen_exit_name, connection_edge_is_rendezvous_stream(), socks_request_t::port, entry_connection_t::socks_request, and tor_snprintf().