Tor
0.4.6.0-alpha-dev
feature
relay
onion_queue.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-2020, The Tor Project, Inc. */
5
/* See LICENSE for licensing information */
6
7
/**
8
* \file onion_queue.h
9
* \brief Header file for onion_queue.c.
10
**/
11
12
#ifndef TOR_ONION_QUEUE_H
13
#define TOR_ONION_QUEUE_H
14
15
struct
create_cell_t
;
16
17
int
onion_pending_add
(
or_circuit_t
*circ,
struct
create_cell_t
*
onionskin
);
18
or_circuit_t
*
onion_next_task
(
struct
create_cell_t
**onionskin_out);
19
int
onion_num_pending
(uint16_t
handshake_type
);
20
void
onion_pending_remove
(
or_circuit_t
*circ);
21
void
clear_pending_onions
(
void
);
22
23
#endif
/* !defined(TOR_ONION_QUEUE_H) */
onion_num_pending
int onion_num_pending(uint16_t handshake_type)
Definition:
onion_queue.c:301
create_cell_t::handshake_type
uint16_t handshake_type
Definition:
onion.h:28
onion_pending_remove
void onion_pending_remove(or_circuit_t *circ)
Definition:
onion_queue.c:310
create_cell_t
Definition:
onion.h:24
clear_pending_onions
void clear_pending_onions(void)
Definition:
onion_queue.c:353
create_cell_t::onionskin
uint8_t onionskin[CELL_PAYLOAD_SIZE - 4]
Definition:
onion.h:32
onion_next_task
or_circuit_t * onion_next_task(struct create_cell_t **onionskin_out)
Definition:
onion_queue.c:269
or_circuit_t
Definition:
or_circuit_st.h:21
onion_pending_add
int onion_pending_add(or_circuit_t *circ, struct create_cell_t *onionskin)
Definition:
onion_queue.c:142
Generated by
1.8.20