pike.git/
lib/
modules/
Protocols.pmod/
DNS.pmod
Branch:
Tag:
Non-build tags
All tags
No tags
2012-02-29
2012-02-29 13:55:13 by Henrik Grubbström (Grubba) <grubba@grubba.org>
7248299d784f7e2f51bd9d8099a51adec85cdbf7 (
7
lines) (+
6
/-
1
)
[
Show
|
Annotate
]
Branch:
7.9
Protocols.DNS: Added some minimal autodoc for the async_client.
1436:
#define GIVE_UP_DELAY (RETRIES * RETRY_DELAY + REMOVE_DELAY)*2 // FIXME: Randomized source port!
-
//!
+
//!
Asynchronous DNS client.
class async_client { inherit client;
1574:
} }
+
//!
void host_to_ip(string host, function callback, mixed ... args) { if(sizeof(domains) && host[-1] != '.' && sizeof(host/".") < 3) {
1586:
} }
+
//!
void ip_to_host(string ip, function callback, mixed ... args) { do_query(arpa_from_ip(ip), C_IN, T_PTR,
1594:
@args); }
+
//!
void get_mx_all(string host, function callback, mixed ... args) { if(sizeof(domains) && host[-1] != '.' && sizeof(host/".") < 3) {
1605:
} }
+
//!
void get_mx(string host, function callback, mixed ... args) { get_mx_all(host,