ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/EV/EV/DNS.pm
(Generate patch)

Comparing EV/EV/DNS.pm (file contents):
Revision 1.3 by root, Fri Oct 26 18:21:32 2007 UTC vs.
Revision 1.4 by root, Mon Oct 29 09:00:43 2007 UTC

34 34
35TODO 35TODO
36 36
37=over 4 37=over 4
38 38
39=item EV::DNS::init
40
41Called automatically when the module is firts used. Uses resolv.conf
42and/or some obscure win32 ibterface to initialise the nameservers and
43other parameters.
44
45=item EV::DNS::shutdown $fail_requests = 1
46
47Shuts the DNS client down.
48
49=item $str = EV::DNS::err_to_string $errnum
50
51=item EV::DNS::nameserver_add $adress_as_unteger
52
53Use unpack "N", Socket::inet_aton "address".
54
55=item $count = EV::DNS::count_nameservers
56
57=item int EV::DNS::clear_nameservers_and_suspend
58
59=item int EV::DNS::resume
60
61=item int EV::DNS::nameserver_ip_add $address
62
63=item int EV::DNS::resolve_ipv4 $hostname, $flags, $cb->($result, $type, $ttl, @addrs);
64
65=item int EV::DNS::resolve_ipv6 $hostname, $flags, $cb->($result, $type, $ttl, @addrs);
66
67resolve ipv6 crashes your program in libevent versions up and including at leats 1.3e.
68
69=item int EV::DNS::resolve_reverse $4_or_6_bytes, $flagsm $cb->($result, $type, $ttl, @domains)
70
71=item int EV::DNS::set_option $optionname, $value, $flags
72
73 EV::DNS::set_option "ndots:", "4"
74
75=item int EV::DNS::resolv_conf_parse $flags, $filename
76
77=item int EV::DNS::config_windows_nameservers
78
79=item EV::DNS::search_clear
80
81=item EV::DNS::search_add $domain
82
83=item EV::DNS::search_ndots_set $ndots
84
39=back 85=back
40
41 86
42=head1 BUGS 87=head1 BUGS
43 88
44 * At least up to version 1.3e of libevent, resolve_reverse_ipv6 will 89 * At least up to version 1.3e of libevent, resolve_reverse_ipv6 will
45 always crash the program with an assertion failure. 90 always crash the program with an assertion failure.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines