ares_free_hostent
ares_cancel()
ares_destroy()
ares_destroy_options()
ares_expand_name()
ares_expand_string()
ares_fds()
ares_free_string()
ares_gethostbyaddr()
ares_gethostbyname()
ares_getnameinfo()
ares_getsock()
ares_init()
ares_init_options()
ares_library_cleanup()
ares_library_init()
ares_mkquery()
ares_parse_a_reply()
ares_parse_aaaa_reply()
ares_parse_ns_reply()
ares_parse_ptr_reply()
ares_parse_srv_reply()
ares_parse_txt_reply()
ares_process()
ares_process_fd()
ares_query()
ares_save_options()
ares_search()
ares_send()
ares_strerror()
ares_timeout()
ares_version()

NAME

ares_free_hostent - Free host structure allocated by ares functions

SYNOPSIS

#include <ares.h>

void ares_free_hostent(struct hostent *host)

DESCRIPTION

The ares_free_hostent function frees a struct hostent allocated by one of the functions ares_parse_a_reply(3), ares_parse_aaaa_reply(3), or ares_parse_ptr_reply(3).

NOTES

It is not necessary (and is not correct) to free the host structure passed to the callback functions for ares_gethostbyname(3) or ares_gethostbyaddr(3). c-ares will automatically free such host structures when the callback returns.

SEE ALSO

ares_parse_a_reply (3) ares_parse_aaaa_reply (3) ares_parse_ptr_reply (3) ares_parse_ns_reply (3)

AUTHOR

Greg Hudson, MIT Information Systems
Copyright 1998 by the Massachusetts Institute of Technology.

This HTML page was made with roffit.