1
0
mirror of https://frontier.innolan.net/rainlance/c-ares.git synced 2025-11-22 00:10:04 +00:00

Make ares_init(), ares_dup() and ares_init_options() return ARES_ENOTINITIALIZED

if library initialization has not been performed calling ares_library_init().
This commit is contained in:
Yang Tse
2009-05-26 18:00:14 +00:00
parent 84aa2f8a5d
commit cf3301f024
9 changed files with 46 additions and 9 deletions

10
TODO
View File

@ -6,3 +6,13 @@ ares_gethostbyname
- When built to support IPv6, it needs to also support PF_UNSPEC or similar,
so that an application can ask for any protocol and then c-ares would return
all known resolves and not just explicitly IPv4 _or_ IPv6 resolves.
ares_process
- Upon next ABI brakage ares_process() could/should be changed to return 'int'
and return ARES_ENOTINITIALIZED if ares_library_init() has not been called.
ares_process_fd
- Upon next ABI brakage ares_process_fd() could/should be changed to return
'int' and return ARES_ENOTINITIALIZED if library has not been initialized.