aboutsummaryrefslogtreecommitdiff
path: root/src/core/or/listener_connection_st.h
blob: 78175ea06180bf8f63a255e7ae9229f0b83d9e2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* Copyright (c) 2001 Matej Pfajfar.
 * Copyright (c) 2001-2004, Roger Dingledine.
 * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
 * Copyright (c) 2007-2020, The Tor Project, Inc. */
/* See LICENSE for licensing information */

/**
 * @file listener_connection_st.h
 * @brief Listener connection structure.
 **/

#ifndef LISTENER_CONNECTION_ST_H
#define LISTENER_CONNECTION_ST_H

#include "core/or/connection_st.h"

/** Subtype of connection_t; used for a listener socket. */
struct listener_connection_t {
  connection_t base_;

  /** If the connection is a CONN_TYPE_AP_DNS_LISTENER, this field points
   * to the evdns_server_port it uses to listen to and answer connections. */
  struct evdns_server_port *dns_server_port;

  entry_port_cfg_t entry_cfg;

};

#endif /* !defined(LISTENER_CONNECTION_ST_H) */