listener_connection_st.h 701 B

12345678910111213141516171819202122232425
  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-2019, The Tor Project, Inc. */
  5. /* See LICENSE for licensing information */
  6. #ifndef LISTENER_CONNECTION_ST_H
  7. #define LISTENER_CONNECTION_ST_H
  8. #include "core/or/connection_st.h"
  9. /** Subtype of connection_t; used for a listener socket. */
  10. struct listener_connection_t {
  11. connection_t base_;
  12. /** If the connection is a CONN_TYPE_AP_DNS_LISTENER, this field points
  13. * to the evdns_server_port it uses to listen to and answer connections. */
  14. struct evdns_server_port *dns_server_port;
  15. entry_port_cfg_t entry_cfg;
  16. };
  17. #endif