#endif /* signal stuff */
}
+/* Write all statistics to the log, with log level 'severity'. Called
+ * in response to a SIGUSR1. */
static void dumpstats(int severity) {
int i;
connection_t *conn;
rend_service_dump_stats(severity);
}
+/* Called before we make any calls to network-related functions.
+ * (Some operating systems require their network libraries to be
+ * initialized.) */
int network_init(void)
{
#ifdef MS_WINDOWS
return 0;
}
+/* Called by exit() as we shut down the process.
+ */
void exit_function(void)
{
#ifdef MS_WINDOWS
#endif
}
+/* Main entry point for the Tor command-line client.
+ */
int tor_main(int argc, char *argv[]) {
/* give it somewhere to log to initially */