evdns_base_load_hosts

Load an /etc/hosts-style file from 'hosts_fname' into 'base'.

If hosts_fname is NULL, add minimal entries for localhost, and nothing else.

Note that only evdns_getaddrinfo uses the /etc/hosts entries.

Return 0 on success, negative on failure.

extern (C) nothrow
int
evdns_base_load_hosts
(,
const(char)* hosts_fname
)

Meta