Skip to content

AnnounceHandler: optional packet-carrying callback - #85

Open
mclueppers wants to merge 1 commit into
attermann:masterfrom
dobrevit:feat/announce-handler-packet
Open

AnnounceHandler: optional packet-carrying callback#85
mclueppers wants to merge 1 commit into
attermann:masterfrom
dobrevit:feat/announce-handler-packet

Conversation

@mclueppers

Copy link
Copy Markdown

Add a second virtual received_announce(destination_hash, identity, app_data, packet) that Transport now calls; its default forwards to the classic three-argument callback, so existing handlers are unaffected. Handlers that override the new form get the announce packet: receiving interface, hop count, RSSI/SNR and transport id — enough to build neighbour lists without re-parsing and re-verifying the raw packet.

Closes #84

Add a second virtual received_announce(destination_hash, identity,
app_data, packet) that Transport now calls; its default forwards to the
classic three-argument callback, so existing handlers are unaffected.
Handlers that override the new form get the announce packet: receiving
interface, hop count, RSSI/SNR and transport id — enough to build
neighbour lists without re-parsing and re-verifying the raw packet.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature request: give AnnounceHandler access to the announce packet (interface, hops, RSSI/SNR)

1 participant