tor  master
Functions | Variables
command.h File Reference

Header file for command.c. More...

#include "channel.h"
Include dependency graph for command.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void command_process_cell (channel_t *chan, cell_t *cell)
 
void command_process_var_cell (channel_t *chan, var_cell_t *cell)
 
void command_setup_channel (channel_t *chan)
 
void command_setup_listener (channel_listener_t *chan_l)
 
const char * cell_command_to_string (uint8_t command)
 

Variables

uint64_t stats_n_padding_cells_processed
 
uint64_t stats_n_create_cells_processed
 
uint64_t stats_n_created_cells_processed
 
uint64_t stats_n_relay_cells_processed
 
uint64_t stats_n_destroy_cells_processed
 

Detailed Description

Header file for command.c.

Function Documentation

◆ cell_command_to_string()

const char* cell_command_to_string ( uint8_t  command)

Convert the cell command into a lower-case, human-readable string.

◆ command_process_cell()

void command_process_cell ( channel_t chan,
cell_t cell 
)

Process a cell that was just received on chan. Keep internal statistics about how many of each cell we've processed so far this second, and the total number of microseconds it took to process each type of cell.

Here is the caller graph for this function:

◆ command_process_var_cell()

void command_process_var_cell ( channel_t chan,
var_cell_t var_cell 
)

Process an incoming var_cell from a channel; in the current protocol all the var_cells are handshake-related and handled below the channel layer, so this just logs a warning and drops the cell.

Here is the caller graph for this function:

◆ command_setup_channel()

void command_setup_channel ( channel_t chan)

Given a channel, install the right handlers to process incoming cells on it.

Here is the call graph for this function:

◆ command_setup_listener()

void command_setup_listener ( channel_listener_t listener)

Given a listener, install the right handler to process incoming channels on it.

Here is the caller graph for this function:

Variable Documentation

◆ stats_n_create_cells_processed

uint64_t stats_n_create_cells_processed

How many CELL_CREATE cells have we received, ever?

◆ stats_n_created_cells_processed

uint64_t stats_n_created_cells_processed

How many CELL_CREATED cells have we received, ever?

◆ stats_n_destroy_cells_processed

uint64_t stats_n_destroy_cells_processed

How many CELL_DESTROY cells have we received, ever?

◆ stats_n_padding_cells_processed

uint64_t stats_n_padding_cells_processed

How many CELL_PADDING cells have we received, ever?

◆ stats_n_relay_cells_processed

uint64_t stats_n_relay_cells_processed

How many CELL_RELAY cells have we received, ever?