MDNSResponder: Add method to get TXT key values. (#5135)

This commit is contained in:
Alexey D. Filimonov
2021-05-18 13:51:43 +03:00
committed by GitHub
parent 76f0a80fe7
commit 1b2f34b0d6
2 changed files with 23 additions and 7 deletions

View File

@ -111,11 +111,13 @@ public:
bool hasTxt(int idx, const char * key);
String txt(int idx, const char * key);
String txt(int idx, int txtIdx);
String txtKey(int idx, int txtIdx);
private:
String _hostname;
mdns_result_t * results;
mdns_result_t * _getResult(int idx);
mdns_txt_item_t * _getResultTxt(int idx, int txtIdx);
};
extern MDNSResponder MDNS;