dnsserv.h 877 B

123456789101112131415161718192021222324252627
  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-2017, The Tor Project, Inc. */
  5. /* See LICENSE for licensing information */
  6. /**
  7. * \file dnsserv.h
  8. * \brief Header file for dnsserv.c.
  9. **/
  10. #ifndef TOR_DNSSERV_H
  11. #define TOR_DNSSERV_H
  12. void dnsserv_configure_listener(connection_t *conn);
  13. void dnsserv_close_listener(connection_t *conn);
  14. void dnsserv_resolved(entry_connection_t *conn,
  15. int answer_type,
  16. size_t answer_len,
  17. const char *answer,
  18. int ttl);
  19. void dnsserv_reject_request(entry_connection_t *conn);
  20. int dnsserv_launch_request(const char *name, int is_reverse,
  21. control_connection_t *control_conn);
  22. #endif /* !defined(TOR_DNSSERV_H) */