feat: add pmomdns mDNS service discovery library and build infrastructure #1
Loading…
Reference in a new issue
No description provided.
Delete branch "push-xvwxslvpzvsk"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Introduce
pmomdns, a unique mDNS service discovery mechanism for AirPlay and Chromecast using a sharedServiceDaemonwith multicast and unicast fallback. Add the core library implementation, including DNS wire parsing, catalog management, and public API functionsdaemon()andbrowse(). Establish a comprehensive build kit with scripts for versioning, dependency checking, API snapshotting, and automated releases via Forgejo.src/lib.rsexposingdaemon()andbrowse()functions that manage a singletonServiceDaemonand initiate multicast/unicast discovery threads.src/catalog.rsimplementing theCatalogstruct to track service instances and resolve missing SRV, TXT, and A records.src/error.rsdefiningPmomdnsErrorwithDaemonandThreadvariants for error handling.src/unicast.rsproviding socket management and a main loop to query services and emit resolved service events.src/wire.rsimplementing DNS packet parsing (parse_response,read_name) and construction (query).src/tests/covering catalog logic, wire parsing, and live network behavior for AirPlay/Chromecast.tests/api.rsverifying the unique daemon pattern and browse error handling..crate-kit/directory with Makefiles (crate.mk,dev-patch.mk,jj.mk) and scripts for build, release, dependency checking, and API snapshotting.Cargo.tomldefining thepmomdnscrate with dependencies onmdns-sd,socket2,tracing, andthiserror..crate-kit/VERSIONsetting the initial version to0.1.14.README.mddocumenting the architecture, public API, constraints, and development instructions.LICENSE.encontaining the CeCILL FREE SOFTWARE LICENSE AGREEMENT..gitignoreexcludingtargetand.cargo/config.toml.api/0.1.0.txtandapi/0.1.0.json.gzcapturing the public API snapshot..gitea/workflows/release.yamlfor automated releases triggered by version tags.