cpuworker.h 915 Bytes
Newer Older
Sebastian Hahn's avatar
Sebastian Hahn committed
1
2
3
/* Copyright (c) 2001 Matej Pfajfar.
 * Copyright (c) 2001-2004, Roger Dingledine.
 * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
4
 * Copyright (c) 2007-2012, The Tor Project, Inc. */
Sebastian Hahn's avatar
Sebastian Hahn committed
5
6
7
8
9
10
11
/* See LICENSE for licensing information */

/**
 * \file cpuworker.h
 * \brief Header file for cpuworker.c.
 **/

12
13
#ifndef TOR_CPUWORKER_H
#define TOR_CPUWORKER_H
Sebastian Hahn's avatar
Sebastian Hahn committed
14
15
16
17
18
19

void cpu_init(void);
void cpuworkers_rotate(void);
int connection_cpu_finished_flushing(connection_t *conn);
int connection_cpu_reached_eof(connection_t *conn);
int connection_cpu_process_inbuf(connection_t *conn);
20
struct create_cell_t;
Sebastian Hahn's avatar
Sebastian Hahn committed
21
22
int assign_onionskin_to_cpuworker(connection_t *cpuworker,
                                  or_circuit_t *circ,
23
                                  struct create_cell_t *onionskin);
Sebastian Hahn's avatar
Sebastian Hahn committed
24

25
26
27
uint64_t estimated_usec_for_onionskins(uint32_t n_requests,
                                       uint16_t onionskin_type);

Sebastian Hahn's avatar
Sebastian Hahn committed
28
29
#endif