Tor 0.4.9.1-alpha-dev
|
Header file for onion_queue.c. More...
Go to the source code of this file.
Functions | |
void | onion_consensus_has_changed (const networkstatus_t *ns) |
int | onion_pending_add (or_circuit_t *circ, struct create_cell_t *onionskin) |
or_circuit_t * | onion_next_task (struct create_cell_t **onionskin_out) |
int | onion_num_pending (uint16_t handshake_type) |
void | onion_pending_remove (or_circuit_t *circ) |
void | clear_pending_onions (void) |
Header file for onion_queue.c.
Definition in file onion_queue.h.
void clear_pending_onions | ( | void | ) |
Remove all circuits from the pending list. Called from tor_free_all.
Definition at line 349 of file onion_queue.c.
void onion_consensus_has_changed | ( | const networkstatus_t * | ns | ) |
Consensus has changed, update the cached parameters.
Definition at line 365 of file onion_queue.c.
or_circuit_t * onion_next_task | ( | create_cell_t ** | onionskin_out | ) |
Remove the highest priority item from ol_list[] and return it, or return NULL if the lists are empty.
Definition at line 265 of file onion_queue.c.
int onion_num_pending | ( | uint16_t | handshake_type | ) |
Return the number of handshake_type-style create requests pending.
Definition at line 297 of file onion_queue.c.
int onion_pending_add | ( | or_circuit_t * | circ, |
create_cell_t * | onionskin | ||
) |
Add circ to the end of ol_list and return 0, except if ol_list is too long, in which case do nothing and return -1.
Definition at line 177 of file onion_queue.c.
void onion_pending_remove | ( | or_circuit_t * | circ | ) |
Go through ol_list, find the onion_queue_t element which points to circ, remove and free that element. Leave circ itself alone.
Definition at line 306 of file onion_queue.c.
Referenced by circuit_about_to_free().