Tor  0.4.6.0-alpha-dev
listener_connection_st.h
Go to the documentation of this file.
1 /* Copyright (c) 2001 Matej Pfajfar.
2  * Copyright (c) 2001-2004, Roger Dingledine.
3  * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
4  * Copyright (c) 2007-2020, The Tor Project, Inc. */
5 /* See LICENSE for licensing information */
6 
7 /**
8  * @file listener_connection_st.h
9  * @brief Listener connection structure.
10  **/
11 
12 #ifndef LISTENER_CONNECTION_ST_H
13 #define LISTENER_CONNECTION_ST_H
14 
15 #include "core/or/connection_st.h"
16 
17 /** Subtype of connection_t; used for a listener socket. */
19  connection_t base_;
20 
21  /** If the connection is a CONN_TYPE_AP_DNS_LISTENER, this field points
22  * to the evdns_server_port it uses to listen to and answer connections. */
23  struct evdns_server_port *dns_server_port;
24 
25  entry_port_cfg_t entry_cfg;
26 
27 };
28 
29 #endif /* !defined(LISTENER_CONNECTION_ST_H) */
listener_connection_t
Definition: listener_connection_st.h:18
connection_t
Definition: connection_st.h:45
connection_st.h
Base connection structure.
entry_port_cfg_t
Definition: entry_port_cfg_st.h:18
listener_connection_t::dns_server_port
struct evdns_server_port * dns_server_port
Definition: listener_connection_st.h:23