diff options
author | Mike Perry <mikeperry-git@torproject.org> | 2018-08-29 17:10:06 +0000 |
---|---|---|
committer | Mike Perry <mikeperry-git@torproject.org> | 2018-08-29 17:10:06 +0000 |
commit | 93ff8b411a2ac8eb6c3b58d90e2476d3e0a372ec (patch) | |
tree | e4b73afb2983d0125d30d015169dab217c5d1398 /src/core/or/half_edge_st.h | |
parent | 810152b20f6d773172e1f28ab72a1d4b2fda2d82 (diff) | |
parent | ce894e20b597d2d21b56ac8a8f13d1ea4063731d (diff) | |
download | tor-93ff8b411a2ac8eb6c3b58d90e2476d3e0a372ec.tar.gz tor-93ff8b411a2ac8eb6c3b58d90e2476d3e0a372ec.zip |
Merge branch 'ticket25573-034' into ticket25573-master
Diffstat (limited to 'src/core/or/half_edge_st.h')
-rw-r--r-- | src/core/or/half_edge_st.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/core/or/half_edge_st.h b/src/core/or/half_edge_st.h new file mode 100644 index 0000000000..5ed24dabeb --- /dev/null +++ b/src/core/or/half_edge_st.h @@ -0,0 +1,34 @@ +/* Copyright (c) 2001 Matej Pfajfar. + * Copyright (c) 2001-2004, Roger Dingledine. + * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson. + * Copyright (c) 2007-2018, The Tor Project, Inc. */ +/* See LICENSE for licensing information */ + +#ifndef HALF_EDGE_ST_H +#define HALF_EDGE_ST_H + +#include "core/or/or.h" + +/** + * Struct to track a connection that we closed that the other end + * still thinks is open. Exists in origin_circuit_t.half_streams until + * we get an end cell or a resolved cell for this stream id. + */ +typedef struct half_edge_t { + /** stream_id for the half-closed connection */ + streamid_t stream_id; + + /** How many sendme's can the other end still send, based on how + * much data we had sent at the time of close */ + int sendmes_pending; + + /** How much more data can the other end still send, based on + * our deliver window */ + int data_pending; + + /** Is there a connected cell pending? */ + int connected_pending : 1; +} half_edge_t; + +#endif + |