Tor  0.4.7.0-alpha-dev
Functions
control_fmt.h File Reference

Header file for control_fmt.c. More...

Go to the source code of this file.

Functions

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)
 
char * entry_connection_describe_status_for_controller (const entry_connection_t *conn)
 
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)

Allocate and return a description of circ's current status, including its path (if any).

Definition at line 73 of file control_fmt.c.

◆ entry_connection_describe_status_for_controller()

char* entry_connection_describe_status_for_controller ( const entry_connection_t conn)

Allocate and return a description of conn's current status.

Definition at line 166 of file control_fmt.c.

◆ node_describe_longname_by_id()

const char* node_describe_longname_by_id ( const char *  id_digest)

Return a longname the node whose identity is id_digest. If node_get_by_id() returns NULL, base 16 encoding of id_digest is returned instead.

This function is not thread-safe. Each call to this function invalidates previous values returned by this function.

Definition at line 267 of file control_fmt.c.

◆ 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.