Tor  0.4.6.0-alpha-dev
Functions
status.h File Reference

Header for status.c. More...

#include "lib/testsupport/testsupport.h"

Go to the source code of this file.

Functions

void note_connection (bool inbound, int family)
 
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 155 of file status.c.

◆ note_connection()

void note_connection ( bool  inbound,
int  family 
)

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

Definition at line 134 of file status.c.