|
AntHocNet 2.6.1
Paper-faithful ant-colony ad hoc routing: the shared core and its adapters
|
The ant X-ray (#637): an ant's wire bytes decoded by the core's own codec into a small JSON object. More...
#include <cstdint>#include <cstdio>#include <string>#include <vector>#include "anthocnet/core/ant_message.h"#include "anthocnet/core/ant_message_codec.h"Go to the source code of this file.
Namespaces | |
| namespace | ahn_web |
| Built-in teaching scenarios: one per network family, shaped like the repo's presets but scaled down to what reads well on a screen. | |
Functions | |
| std::string | ahn_web::antJson (const std::vector< std::uint8_t > &bytes) |
bytes decoded by core::codec::deserialize, as JSON. | |
The ant X-ray (#637): an ant's wire bytes decoded by the core's own codec into a small JSON object.
The game shows these fields beside the bytes; the native build prints the same JSON for the same bytes (ahn-web-trace –decode), and web/test/xray.test.mjs requires the two to agree.
Definition in file xray.h.