Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Advertiser ¶
type Advertiser struct {
// contains filtered or unexported fields
}
Advertiser manages mDNS hostname advertisements for simulators. Uses the system's native mDNS daemon (dns-sd on macOS, avahi on Linux) for reliable hostname resolution on the local network.
func (*Advertiser) ActiveHostname ¶
func (a *Advertiser) ActiveHostname(simID int) string
ActiveHostname returns the hostname being advertised for a simulator, or empty string if none.
func (*Advertiser) Advertise ¶
func (a *Advertiser) Advertise(simID int, hostname string, port int, serviceType string, ip string, txt []string) error
Advertise starts advertising a hostname via mDNS for the given simulator. If the hostname is already in use (internally or on the network), it appends -1, -2, etc. until an unused name is found. Returns nil on success. A no-op if hostname is empty.
func (*Advertiser) Remove ¶
func (a *Advertiser) Remove(simID int)
Remove stops the mDNS advertisement for a simulator.
func (*Advertiser) Shutdown ¶
func (a *Advertiser) Shutdown()
Shutdown stops all mDNS advertisements.