Alien-cares
view release on metacpan or search on metacpan
libcares/ares_private.h view on Meta::CPAN
struct timeval *check);
void ares__send_query(ares_channel channel, struct query *query,
struct timeval *now);
void ares__close_sockets(ares_channel channel, struct server_state *server);
int ares__get_hostent(FILE *fp, int family, struct hostent **host);
int ares__read_line(FILE *fp, char **buf, size_t *bufsize);
void ares__free_query(struct query *query);
unsigned short ares__generate_new_id(rc4_key* key);
struct timeval ares__tvnow(void);
int ares__expand_name_for_response(const unsigned char *encoded,
const unsigned char *abuf, int alen,
char **s, long *enclen);
void ares__init_servers_state(ares_channel channel);
void ares__destroy_servers_state(ares_channel channel);
struct ares_addrinfo *ares__malloc_addrinfo(void);
struct ares_addrinfo *ares__append_addrinfo(struct ares_addrinfo *ai,
struct ares_addrinfo **head_ai);
int ares__get_addrinfo(FILE *fp,
const char *name,
unsigned short port,
const struct ares_addrinfo *hints,
struct ares_addrinfo **result);
int ares__parse_a_reply(const unsigned char *abuf,
int alen,
struct hostent **host,
struct ares_addrinfo **ai,
unsigned short port,
char **cname,
struct ares_addrttl *addrttls,
int *naddrttls);
int ares__parse_aaaa_reply(const unsigned char *abuf,
int alen,
struct hostent **host,
struct ares_addrinfo **ai,
unsigned short port,
char **cname,
struct ares_addr6ttl *addrttls,
int *naddrttls);
#if 0 /* Not used */
long ares__tvdiff(struct timeval t1, struct timeval t2);
#endif
void ares__socket_close(ares_channel, ares_socket_t);
#define ARES_SWAP_BYTE(a,b) \
{ unsigned char swapByte = *(a); *(a) = *(b); *(b) = swapByte; }
#define SOCK_STATE_CALLBACK(c, s, r, w) \
do { \
if ((c)->sock_state_cb) \
(c)->sock_state_cb((c)->sock_state_cb_data, (s), (r), (w)); \
} WHILE_FALSE
#ifdef CURLDEBUG
/* This is low-level hard-hacking memory leak tracking and similar. Using the
libcurl lowlevel code from within library is ugly and only works when
c-ares is built and linked with a similarly curldebug-enabled libcurl,
but we do this anyway for convenience. */
#define HEADER_CURL_SETUP_ONCE_H
#include "../lib/memdebug.h"
#endif
#endif /* __ARES_PRIVATE_H */
( run in 0.800 second using v1.01-cache-2.11-cpan-efa8479b9fe )