Skip to main content

Crate iroh_http_discovery

Crate iroh_http_discovery 

Source
Expand description

iroh-http-discovery — local mDNS peer discovery for iroh-http.

Implements Iroh’s address-lookup trait using mDNS so nodes on the same local network can find each other without a relay server.

Use start_browse and start_advertise to start discovery sessions.

§Platform notes

  • Desktop (macOS, Linux, Windows): enabled with the mdns feature (default).
  • iOS / Android (Tauri mobile): use the platform’s native service discovery.

Structs§

AdvertiseSession
An active advertise session.
BrowseSession
An active browse session that yields discovery events.
PeerDiscoveryEvent
A discovery event suitable for FFI transport.

Enums§

DiscoveryError
Structured error returned by start_browse and start_advertise.

Functions§

start_advertise
Start advertising this node on the local network via mDNS.
start_browse
Start a browse session: discover peers on the local network via mDNS.