Tor  0.4.7.0-alpha-dev
Public Types | Data Fields
channel_listener_t 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_t:: { ... }  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 461 of file channel.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Why did we close?

Definition at line 475 of file channel.h.

Field Documentation

◆ close

void(* close) (channel_listener_t *)

Close an open channel

Definition at line 491 of file channel.h.

Referenced by channel_listener_mark_for_close().

◆ describe_transport

const char*(* describe_transport) (channel_listener_t *)

Describe the transport subclass for this channel

Definition at line 493 of file channel.h.

Referenced by channel_listener_describe_transport().

◆ dumpstats

void(* dumpstats) (channel_listener_t *, int)

Optional method to dump transport-specific statistics on the channel

Definition at line 495 of file channel.h.

Referenced by channel_listener_dump_transport_statistics().

◆ free_fn

void(* free_fn) (channel_listener_t *)

Free a channel

Definition at line 489 of file channel.h.

◆ global_identifier

uint64_t global_identifier

Globally unique ID number for a channel over the lifetime of a Tor process.

Definition at line 468 of file channel.h.

Referenced by channel_init_listener(), and channel_listener_dump_statistics().

◆ incoming_list

smartlist_t* incoming_list

List of pending incoming connections

Definition at line 501 of file channel.h.

Referenced by channel_tls_listener_close_method().

◆ listener

channel_listener_fn_ptr listener

Registered listen handler to call on incoming connection

Definition at line 498 of file channel.h.

Referenced by channel_listener_process_incoming().

◆ n_accepted

uint64_t n_accepted

Counters for listeners

Definition at line 507 of file channel.h.

Referenced by channel_listener_dump_statistics().

◆ 

enum { ... } reason_for_closing

Why did we close?

◆ registered

unsigned char registered

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

Definition at line 471 of file channel.h.

Referenced by channel_listener_register(), and channel_listener_unregister().

◆ state

◆ timestamp_accepted

time_t timestamp_accepted

Timestamps for listeners

Definition at line 504 of file channel.h.

Referenced by channel_listener_dump_statistics(), and channel_listener_timestamp_accepted().

◆ timestamp_created

time_t timestamp_created

Timestamps for both cell channels and listeners

Definition at line 483 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: