mjansson / mdns

Public domain mDNS/DNS-SD library in C
The Unlicense
437 stars 117 forks source link

Multiple Questions per Query #58

Closed Muddasir-Shakil closed 2 years ago

Muddasir-Shakil commented 2 years ago

Hello, I am looking for solution to implement LDS-ME for OPC UA. There I need multicast queries to discover SRV and TXT records of OPC UA Applications. I could send and receive them individually with mdns_query_send on port 5353. It allowed me to receive QM responses. Since I am working with embedded devices it would be a nice to have "Multiple Questions per Query". How can I enable it in my application? Problem: mdns_query_send only send one question per query. Thank you Muddasir Shakil

mjansson commented 2 years ago

I added a mdns_multiquery_send function which takes an array of name + record type structs to send multiple questions in the same packet.