Tor 0.4.9.0-alpha-dev
conflux_pool.h
Go to the documentation of this file.
1/* Copyright (c) 2023, The Tor Project, Inc. */
2/* See LICENSE for licensing information */
3
4/**
5 * \file conflux_pool.h
6 * \brief Header file for conflux_pool.c.
7 **/
8
9#ifndef TOR_CONFLUX_POOL_H
10#define TOR_CONFLUX_POOL_H
11
12#include "core/or/or.h"
13
14void conflux_pool_init(void);
16void conflux_pool_free_all(void);
17
19 time_t now);
20
21void conflux_predict_new(time_t now);
22
23bool conflux_launch_leg(const uint8_t *nonce);
24
26 smartlist_t *excluded);
28 smartlist_t *excluded);
29
33
34void conflux_process_link(circuit_t *circ, const cell_t *cell,
35 const uint16_t cell_len);
36void conflux_process_linked(circuit_t *circ, crypt_path_t *layer_hint,
37 const cell_t *cell, const uint16_t cell_len);
39
40typedef struct conflux_t conflux_t;
41void conflux_log_set(int loglevel, const conflux_t *cfx, bool is_client);
42
43#ifdef TOR_UNIT_TESTS
44bool launch_new_set(int num_legs);
45void conflux_clear_shutdown(void);
46digest256map_t *get_linked_pool(bool is_client);
47digest256map_t *get_unlinked_pool(bool is_client);
48extern uint8_t DEFAULT_CLIENT_UX;
49extern uint8_t DEFAULT_EXIT_UX;
50#endif /* defined(UNIT_TESTS) */
51
52#endif /* TOR_CONFLUX_POOL_H */
53
STATIC bool launch_new_set(int num_legs)
Definition: conflux_pool.c:978
void conflux_circuit_has_opened(origin_circuit_t *orig_circ)
void conflux_process_linked_ack(circuit_t *circ)
void conflux_log_set(int loglevel, const conflux_t *cfx, bool is_client)
void conflux_circuit_has_closed(circuit_t *circ)
void conflux_process_linked(circuit_t *circ, crypt_path_t *layer_hint, const cell_t *cell, const uint16_t cell_len)
void conflux_process_link(circuit_t *circ, const cell_t *cell, const uint16_t cell_len)
void conflux_add_guards_to_exclude_list(const origin_circuit_t *circ, smartlist_t *excluded)
void conflux_predict_new(time_t now)
void conflux_notify_shutdown(void)
void conflux_pool_init(void)
void conflux_circuit_about_to_free(circuit_t *circ)
void conflux_add_middles_to_exclude_list(const origin_circuit_t *circ, smartlist_t *excluded)
bool conflux_launch_leg(const uint8_t *nonce)
void conflux_pool_free_all(void)
origin_circuit_t * conflux_get_circ_for_conn(const entry_connection_t *conn, time_t now)
Master header file for Tor-specific functionality.
Definition: cell_st.h:17