Back to index

tor  0.2.3.18-rc
dns.h
Go to the documentation of this file.
00001 /* Copyright (c) 2001 Matej Pfajfar.
00002  * Copyright (c) 2001-2004, Roger Dingledine.
00003  * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
00004  * Copyright (c) 2007-2012, The Tor Project, Inc. */
00005 /* See LICENSE for licensing information */
00006 
00012 #ifndef _TOR_DNS_H
00013 #define _TOR_DNS_H
00014 
00015 int dns_init(void);
00016 int has_dns_init_failed(void);
00017 void dns_free_all(void);
00018 uint32_t dns_clip_ttl(uint32_t ttl);
00019 int dns_reset(void);
00020 void connection_dns_remove(edge_connection_t *conn);
00021 void assert_connection_edge_not_dns_pending(edge_connection_t *conn);
00022 void assert_all_pending_dns_resolves_ok(void);
00023 void dns_cancel_pending_resolve(const char *question);
00024 int dns_resolve(edge_connection_t *exitconn);
00025 void dns_launch_correctness_checks(void);
00026 int dns_seems_to_be_broken(void);
00027 void dns_reset_correctness_checks(void);
00028 void dump_dns_mem_usage(int severity);
00029 
00030 #endif
00031