Expand description
How a server announces itself on the LAN (P1-13, ARCHITECTURE §18).
Servers publish an mDNS record under their own service name, so the
records of other Iroh apps on the network (irohv1) are never heard at
all. The record’s user data carries CLIENT_ALPN and the server’s name.
A record without that prefix is not a Spoolframe server and is ignored.
All of it is untrusted: it says where to dial and which EndpointId to
expect, and Iroh proves the identity on connect.
Structs§
- Advert
- What a server’s record says about it.
Constants§
- MAX_
ADVERT - The most user data an Iroh mDNS record holds (
UserData::MAX_LENGTH). - MDNS_
SERVICE - The mDNS service name: records are
<id>._spoolframe._udp.local.
Functions§
- advert
- The user data a server called
namepublishes: the client ALPN and the name, the name cut at a character boundary to fitMAX_ADVERT. - parse_
advert - Read a record’s user data;
Noneunless it is a Spoolframe server speaking this client protocol.