Tor  0.4.7.0-alpha-dev
half_edge_st.h
Go to the documentation of this file.
1 /* Copyright (c) 2001 Matej Pfajfar.
2  * Copyright (c) 2001-2004, Roger Dingledine.
3  * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
4  * Copyright (c) 2007-2021, The Tor Project, Inc. */
5 /* See LICENSE for licensing information */
6 
7 /**
8  * @file half_edge_st.h
9  * @brief Half-open connection structure.
10  **/
11 
12 #ifndef HALF_EDGE_ST_H
13 #define HALF_EDGE_ST_H
14 
15 #include "core/or/or.h"
16 
17 /**
18  * Struct to track a connection that we closed that the other end
19  * still thinks is open. Exists in origin_circuit_t.half_streams until
20  * we get an end cell or a resolved cell for this stream id.
21  */
22 typedef struct half_edge_t {
23  /** stream_id for the half-closed connection */
25 
26  /** How many sendme's can the other end still send, based on how
27  * much data we had sent at the time of close */
29 
30  /** How much more data can the other end still send, based on
31  * our deliver window */
33 
34  /** Is there a connected cell pending? */
36 } half_edge_t;
37 
38 #endif /* !defined(HALF_EDGE_ST_H) */
Master header file for Tor-specific functionality.
uint16_t streamid_t
Definition: or.h:491
streamid_t stream_id
Definition: half_edge_st.h:24
int connected_pending
Definition: half_edge_st.h:35
int sendmes_pending
Definition: half_edge_st.h:28
int data_pending
Definition: half_edge_st.h:32