1 #ifndef ACL_RES_INCLUDE_H 2 #define ACL_RES_INCLUDE_H 8 #include "../stdlib/acl_define.h" 13 #include <netinet/in.h> 26 #define ACL_RES_ERR_SEND -100 27 #define ACL_RES_ERR_READ -101 28 #define ACL_RES_ERR_RTMO -102 29 #define ACL_RES_ERR_NULL -103 30 #define ACL_RES_ERR_CONN -104 33 #define ACL_RES_USE_UDP 0 34 #define ACL_RES_USE_TCP 1
ACL_API void acl_res_free(ACL_RES *res)
ACL_API const char * acl_res_errmsg(const ACL_RES *res)
ACL_API void acl_res_set_timeout(int conn_timeout, int rw_timeout)
ACL_API ACL_DNS_DB * acl_res_lookup(ACL_RES *res, const char *domain)
ACL_API const char * acl_res_strerror(int errnum)
ACL_API ACL_RES * acl_res_new(const char *dns_ip, unsigned short dns_port)