Tor
0.4.9.1-alpha-dev
core
or
cell_queue_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 cell_queue_st.h
9
* @brief Cell queue structures
10
**/
11
12
#ifndef PACKED_CELL_ST_H
13
#define PACKED_CELL_ST_H
14
15
#include "tor_queue.h"
16
17
/** A cell as packed for writing to the network. */
18
struct
packed_cell_t
{
19
/** Next cell queued on this circuit. */
20
TOR_SIMPLEQ_ENTRY
(
packed_cell_t
) next;
21
char
body
[
CELL_MAX_NETWORK_SIZE
];
/**< Cell as packed for network. */
22
uint32_t
inserted_timestamp
;
/**< Time (in timestamp units) when this cell
23
* was inserted */
24
};
25
26
/** A queue of cells on a circuit, waiting to be added to the
27
* or_connection_t's outbuf. */
28
struct
cell_queue_t
{
29
/** Linked list of packed_cell_t*/
30
TOR_SIMPLEQ_HEAD
(cell_simpleq_t,
packed_cell_t
) head;
31
int
n
;
/**< The number of cells in the queue. */
32
};
33
34
#endif
/* !defined(PACKED_CELL_ST_H) */
CELL_MAX_NETWORK_SIZE
#define CELL_MAX_NETWORK_SIZE
Definition:
or.h:468
cell_queue_t
Definition:
cell_queue_st.h:28
cell_queue_t::n
int n
Definition:
cell_queue_st.h:31
cell_queue_t::TOR_SIMPLEQ_HEAD
TOR_SIMPLEQ_HEAD(cell_simpleq_t, packed_cell_t) head
packed_cell_t
Definition:
cell_queue_st.h:18
packed_cell_t::inserted_timestamp
uint32_t inserted_timestamp
Definition:
cell_queue_st.h:22
packed_cell_t::body
char body[CELL_MAX_NETWORK_SIZE]
Definition:
cell_queue_st.h:21
packed_cell_t::TOR_SIMPLEQ_ENTRY
TOR_SIMPLEQ_ENTRY(packed_cell_t) next
Generated by
1.9.4