status.h File Reference

Header for status.c. More...

#include "lib/testsupport/testsupport.h"

Go to the source code of this file.


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 183 of file status.c.

◆ 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 171 of file status.c.

◆ 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 134 of file status.c.