mirror of
https://frontier.innolan.net/rainlance/c-ares.git
synced 2026-03-17 05:54:54 +00:00
Jakub Hrozek added ares_parse_txt_reply() for TXT parsing
This commit is contained in:
10
ares.h
10
ares.h
@ -436,6 +436,11 @@ struct ares_srv_reply {
|
||||
char *host;
|
||||
};
|
||||
|
||||
struct ares_txt_reply {
|
||||
unsigned int length;
|
||||
unsigned char *txt;
|
||||
};
|
||||
|
||||
/*
|
||||
** Parse the buffer, starting at *abuf and of length alen bytes, previously
|
||||
** obtained from an ares_search call. Put the results in *host, if nonnull.
|
||||
@ -472,6 +477,11 @@ CARES_EXTERN int ares_parse_srv_reply(const unsigned char* abuf,
|
||||
struct ares_srv_reply** srv_out,
|
||||
int *nsrvreply);
|
||||
|
||||
CARES_EXTERN int ares_parse_txt_reply(const unsigned char* abuf,
|
||||
int alen,
|
||||
struct ares_txt_reply** txt_out,
|
||||
int *nsrvreply);
|
||||
|
||||
CARES_EXTERN void ares_free_string(void *str);
|
||||
|
||||
CARES_EXTERN void ares_free_hostent(struct hostent *host);
|
||||
|
||||
Reference in New Issue
Block a user