deps_src/mdns/NOTICE.md
The four files in this directory implement mDNS / DNS-SD lookup and are vendored from third-party sources:
mDNS / DNS-SD lookup library by Mattias Jansson. Originally released to the public domain at https://github.com/mjansson/mdns.
The exact files here were taken from CrealityOfficial/CrealityPrint v7.1.1, which split the upstream header-only library into separate declaration (mdns.h) and implementation (mdns.c) files.
Thin C++ wrapper over mdns.{h,c} that exposes a single function:
std::vector<machine_info> syncDiscoveryService( const std::vectorstd::string& prefix);
It sends a DNS-SD meta-discovery query (_services._dns-sd._udp.local.),
listens for ~5 seconds, and returns {ip, service_name} for every
service announcement whose name contains any of the given prefixes.
OrcaSlicer uses this to find Creality K-series printers on the LAN
(service-name prefix "Creality"), since K-series firmware announces
each printer under a per-device-unique service type
_Creality-<MAC-derived-hex>._udp.local. that no fixed-name query can
target.
src/slic3r/GUI/print_manage/utils/cxmdns.{h,cpp}