resolver: add c-ares support

This patch based on the patch from @gbour (see #7). With
--enable-cares old implementation will be replaced with c-ares API.
This commit is contained in:
Dmitry Podgorny
2019-10-14 06:51:08 +03:00
parent 18b67d6eaf
commit a13847d994
5 changed files with 310 additions and 103 deletions

View File

@@ -47,6 +47,7 @@
#include "strophe.h"
#include "common.h"
#include "resolver.h"
#include "util.h"
/* Workaround for visual studio without va_copy support. */
@@ -63,6 +64,7 @@
void xmpp_initialize(void)
{
sock_initialize();
resolver_initialize();
tls_initialize();
}
@@ -73,6 +75,7 @@
void xmpp_shutdown(void)
{
tls_shutdown();
resolver_shutdown();
sock_shutdown();
}