12#ifndef CONNECTION_ST_H
13#define CONNECTION_ST_H
19#define BASE_CONNECTION_MAGIC 0x7C3C304Eu
20#define OR_CONNECTION_MAGIC 0x7D31FF03u
21#define EDGE_CONNECTION_MAGIC 0xF0374013u
22#define ENTRY_CONNECTION_MAGIC 0xbb4a5703
23#define DIR_CONNECTION_MAGIC 0x9988ffeeu
24#define CONTROL_CONNECTION_MAGIC 0x8abc765du
25#define LISTENER_CONNECTION_MAGIC 0x1a1ac741u
187#define CONN_IS_EDGE(x) \
188 ((x)->type == CONN_TYPE_EXIT || (x)->type == CONN_TYPE_AP)
192#define DIR_CONN_IS_SERVER(conn) ((conn)->purpose == DIR_PURPOSE_SERVER)
time_t timestamp_last_read_allowed
unsigned int writing_to_linked_conn
unsigned int in_connection_handle_write
struct event * write_event
unsigned int inbuf_reached_eof
struct connection_t * linked_conn
unsigned int hold_open_until_flushed
unsigned int reading_from_linked_conn
unsigned int from_listener
uint64_t global_identifier
unsigned int read_blocked_on_bw
uint16_t marked_for_close
const char * marked_for_close_file
uint32_t n_written_conn_bw
unsigned int linked_conn_is_closed
unsigned int in_flushed_some
unsigned int always_rate_limit_as_remote
unsigned int active_on_link
unsigned int write_blocked_on_bw
struct event * read_event
time_t timestamp_last_write_allowed