2 * Copyright (c) 2006-2014 Erik Ekman <yarrick@kryo.se>,
3 * 2006-2009 Bjorn Andersson <flex@kryo.se>
5 * Permission to use, copy, modify, and distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies.
9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
24 enum connection client_get_conn();
25 const char *client_get_raw_addr();
27 void client_set_nameserver(struct sockaddr_storage *, int);
28 void client_set_topdomain(const char *cp);
29 void client_set_password(const char *cp);
30 int client_set_qtype(char *qtype);
31 char *client_get_qtype();
32 void client_set_downenc(char *encoding);
33 void client_set_selecttimeout(int select_timeout);
34 void client_set_lazymode(int lazy_mode);
35 void client_set_hostname_maxlen(int i);
37 int client_handshake(int dns_fd, int raw_mode, int autodetect_frag_size, int fragsize);
38 int client_tunnel(int tun_fd, int dns_fd);