Back to index

tor  0.2.3.18-rc
dnsserv.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_DNSSERV_H
00013 #define _TOR_DNSSERV_H
00014 
00015 void dnsserv_configure_listener(connection_t *conn);
00016 void dnsserv_close_listener(connection_t *conn);
00017 void dnsserv_resolved(entry_connection_t *conn,
00018                       int answer_type,
00019                       size_t answer_len,
00020                       const char *answer,
00021                       int ttl);
00022 void dnsserv_reject_request(entry_connection_t *conn);
00023 int dnsserv_launch_request(const char *name, int is_reverse);
00024 
00025 #endif
00026