This repository has been archived by the owner on Dec 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
Avahi Tests
stonier edited this page Nov 3, 2011
·
7 revisions
- Centralised computer - _ros-master._tcp listener
- Laptop - _ros-master._tcp publisher (DudeMaster)
- Secondary PC - _ros-master._tcp publisher (also DudeMaster)
Laptop wireless connection is broken, then restarted.
- When wireless connection is broken:
- laptop avahi_publish cancels the publication.
- pc avahi_browse keeps record of a resolvable zombie [it doesn't keep a resolver open].
- pc zeroconf_avahi detects failure to resolve after a timeout [it keeps the resolver open]
- When wireless connection is remade:
- laptop avahi_publish recreates the publication [automatically].
- pc avahi_browse doesn't see anything [as resolver is not kept open]
- pc zeroconf_avahi resolves again [as it keeps the resolver open]
Laptop drops connection. Secondary pc publishes on laptop's same name. Laptop reconnects.
- When secondary pc publishes on the zombie's name:
- pc avahi_browse has no idea [as resolver is not kept open].
- pc zeroconf_avahi resolves again [since it keeps resolver open].
- When wireless connection returns in range:
- laptop avahi_publish publishes on #2
- pc avahi_browse discovers publisher #2
- pc zeroconf_avahi discovers publisher #2