jbagg / QtZeroConf

Qt wrapper class for ZeroConf libraries across various platforms.
Other
70 stars 51 forks source link

Added txt support. #8

Closed mbsmith closed 7 years ago

mbsmith commented 7 years ago

A lot of devices I use at work return pretty crucial data in the txt response. It's pretty common so I thought I'd pass along my changes.

It might be nice to cleanup the txt's from both bonjour, and avahi; However I haven't managed to add that yet as I'm currently handling the differences in the caller. (They're pretty minor).

mbsmith commented 7 years ago

Yeah a QHash, or QMap might be better. This just worked in a pinch. I might revisit that myself since the parsing I do in the caller is a bit messy.

jbagg commented 7 years ago

I've added support for txt records, in both publishing and discovery. Discovery inserts multiple name/value pairs into QMap.