Tor
0.4.7.0-alpha-dev
|
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_t * | incoming_list |
time_t | timestamp_accepted |
uint64_t | n_accepted |
void(* close) (channel_listener_t *) |
Close an open channel
Definition at line 491 of file channel.h.
Referenced by channel_listener_mark_for_close().
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().
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().
void(* free_fn) (channel_listener_t *) |
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().
smartlist_t* incoming_list |
List of pending incoming connections
Definition at line 501 of file channel.h.
Referenced by channel_tls_listener_close_method().
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().
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?
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().
channel_listener_state_t state |
Current channel listener state
Definition at line 463 of file channel.h.
Referenced by channel_listener_change_state(), channel_listener_dump_statistics(), channel_listener_mark_for_close(), channel_listener_process_incoming(), channel_listener_queue_incoming(), channel_listener_unregister(), channel_tls_listener_close_method(), and command_setup_listener().
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().
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().