Tor 0.4.9.8
Loading...
Searching...
No Matches
status.h File Reference

Header for status.c. More...

Go to the source code of this file.

Functions

void note_connection (bool inbound, const connection_t *conn)
 
void note_circ_closed_for_unrecognized_cells (time_t n_seconds, uint32_t n_cells)
 
int log_heartbeat (time_t now)
 

Detailed Description

Header for status.c.

Definition in file status.h.

Function Documentation

◆ log_heartbeat()

int log_heartbeat ( time_t now)

Log a "heartbeat" message describing Tor's status and history so that the user can know that there is indeed a running Tor. Return 0 on success and -1 on failure.

Now, if we are an HS service, log some stats about our usage

Definition at line 184 of file status.c.

Referenced by heartbeat_callback(), and process_signal().

◆ note_circ_closed_for_unrecognized_cells()

void note_circ_closed_for_unrecognized_cells ( time_t n_seconds,
uint32_t n_cells )

Note that a circuit has closed n_seconds after having been created, because of one or more unrecognized cells. Also note the number of unrecognized cells n_cells.

Definition at line 172 of file status.c.

Referenced by circuit_about_to_free().

◆ note_connection()

void note_connection ( bool inbound,
const connection_t * conn )

Note that a connection has arrived or has been made, for use in the heartbeat message.

Definition at line 135 of file status.c.

Referenced by connection_connect_sockaddr(), and connection_handle_listener_read().