Convert mdns_query to a C++ class.