wireless_p2p/aodv library
Ad hoc On-Demand Distance Vector (AODV) - simulation-friendly core
This implementation provides a production-minded, simulation-friendly AODV module. It focuses on determinism, clear APIs, and auditability.
- Nodes are identified by integer IDs.
- Route discovery uses RREQ/RREP flooding with sequence numbers.
- Routing table entries include next-hop, hop-count, and sequence numbers.
- The API is suitable for simulation frameworks: send, tick, and event hooks.
Note: This is a protocol-level simulator (no sockets). The node object can be embedded into larger simulations or adapted to real network stacks.
Classes
Typedefs
- DeliveryCallback = void Function(int from, int to, dynamic payload)
- Callback type invoked when a node delivers a payload to its destination.