tor  master
Public Types | Data Fields
channel_listener_s Struct Reference
Collaboration diagram for channel_listener_s:
Collaboration graph
[legend]

Public Types

enum  { CHANNEL_LISTENER_NOT_CLOSING = 0, CHANNEL_LISTENER_CLOSE_REQUESTED, CHANNEL_LISTENER_CLOSE_FROM_BELOW, CHANNEL_LISTENER_CLOSE_FOR_ERROR }
 

Data Fields

channel_listener_state_t state
 
uint64_t global_identifier
 
unsigned char registered:1
 
enum channel_listener_s:: { ... }  reason_for_closing
 
time_t timestamp_created
 
time_t timestamp_active
 
void(* free_fn )(channel_listener_t *)
 
void(* close )(channel_listener_t *)
 
const char *(* describe_transport )(channel_listener_t *)
 
void(* dumpstats )(channel_listener_t *, int)
 
channel_listener_fn_ptr listener
 
smartlist_tincoming_list
 
time_t timestamp_accepted
 
uint64_t n_accepted
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Why did we close?

Field Documentation

◆ close

void(* close) (channel_listener_t *)

Close an open channel

◆ describe_transport

const char*(* describe_transport) (channel_listener_t *)

Describe the transport subclass for this channel

◆ dumpstats

void(* dumpstats) (channel_listener_t *, int)

Optional method to dump transport-specific statistics on the channel

◆ free_fn

void(* free_fn) (channel_listener_t *)

Free a channel

◆ incoming_list

smartlist_t* incoming_list

List of pending incoming connections

◆ listener

channel_listener_fn_ptr listener

Registered listen handler to call on incoming connection

◆ n_accepted

uint64_t n_accepted

Counters for listeners

◆ reason_for_closing

enum { ... } reason_for_closing

Why did we close?

◆ registered

unsigned char registered

Should we expect to see this channel in the channel lists?

◆ timestamp_accepted

time_t timestamp_accepted

Timestamps for listeners

◆ timestamp_created

time_t timestamp_created

Timestamps for both cell channels and listeners


The documentation for this struct was generated from the following file: