Skip to main content

Crate switchy_mdns

Crate switchy_mdns 

Source
Expand description

mDNS service registration and discovery for MoosicBox servers.

This crate provides functionality for:

  • Registering MoosicBox servers on the local network via mDNS
  • Discovering MoosicBox servers on the local network (with scanner feature)

§Features

  • scanner - Enables mDNS service discovery for finding MoosicBox servers
  • simulator - Provides a simulated mDNS daemon for testing purposes

§Examples

Registering a MoosicBox server:

switchy_mdns::register_service("my-server", "192.168.1.100", 8080).await?;

Modules§

service
mDNS service registration and daemon management. mDNS service registration and daemon management.

Enums§

RegisterServiceError
Errors that can occur when registering an mDNS service.

Constants§

SERVICE_TYPE
The mDNS service type for MoosicBox servers.

Functions§

register_service
Registers an mDNS service on the local network.