Tor
0.4.7.0-alpha-dev
core
or
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 */
24
streamid_t
stream_id
;
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 */
28
int
sendmes_pending
;
29
30
/** How much more data can the other end still send, based on
31
* our deliver window */
32
int
data_pending
;
33
34
/** Is there a connected cell pending? */
35
int
connected_pending
: 1;
36
}
half_edge_t
;
37
38
#endif
/* !defined(HALF_EDGE_ST_H) */
or.h
Master header file for Tor-specific functionality.
streamid_t
uint16_t streamid_t
Definition:
or.h:491
half_edge_t
Definition:
half_edge_st.h:22
half_edge_t::stream_id
streamid_t stream_id
Definition:
half_edge_st.h:24
half_edge_t::connected_pending
int connected_pending
Definition:
half_edge_st.h:35
half_edge_t::sendmes_pending
int sendmes_pending
Definition:
half_edge_st.h:28
half_edge_t::data_pending
int data_pending
Definition:
half_edge_st.h:32
Generated by
1.9.1