tor  0.4.2.0-alpha-dev
Public Types | Data Fields
channel_listener_s Struct Reference

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
 

Detailed Description

Definition at line 466 of file channel.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Why did we close?

Definition at line 480 of file channel.h.

Field Documentation

◆ close

void(* channel_listener_s::close) (channel_listener_t *)

Close an open channel

Definition at line 496 of file channel.h.

Referenced by channel_listener_mark_for_close().

◆ describe_transport

const char*(* channel_listener_s::describe_transport) (channel_listener_t *)

Describe the transport subclass for this channel

Definition at line 498 of file channel.h.

Referenced by channel_listener_describe_transport().

◆ dumpstats

void(* channel_listener_s::dumpstats) (channel_listener_t *, int)

Optional method to dump transport-specific statistics on the channel

Definition at line 500 of file channel.h.

Referenced by channel_listener_dump_transport_statistics().

◆ free_fn

void(* channel_listener_s::free_fn) (channel_listener_t *)

Free a channel

Definition at line 494 of file channel.h.

◆ incoming_list

smartlist_t* channel_listener_s::incoming_list

List of pending incoming connections

Definition at line 506 of file channel.h.

◆ listener

channel_listener_fn_ptr channel_listener_s::listener

Registered listen handler to call on incoming connection

Definition at line 503 of file channel.h.

◆ n_accepted

uint64_t channel_listener_s::n_accepted

Counters for listeners

Definition at line 512 of file channel.h.

Referenced by channel_listener_dump_statistics().

◆ reason_for_closing

enum { ... } channel_listener_s::reason_for_closing

Why did we close?

◆ registered

unsigned char channel_listener_s::registered

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

Definition at line 476 of file channel.h.

Referenced by channel_listener_register(), and channel_listener_unregister().

◆ timestamp_accepted

time_t channel_listener_s::timestamp_accepted

Timestamps for listeners

Definition at line 509 of file channel.h.

Referenced by channel_listener_dump_statistics(), and channel_listener_timestamp_accepted().

◆ timestamp_created

time_t channel_listener_s::timestamp_created

Timestamps for both cell channels and listeners

Definition at line 488 of file channel.h.

Referenced by channel_listener_dump_statistics(), and channel_listener_timestamp_created().


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