Mads
Multi-Agent Distributed System
Loading...
Searching...
No Matches
echo_format.hpp File Reference
#include <cstddef>
#include <string>
#include <nlohmann/json.hpp>

Go to the source code of this file.

Classes

struct  Mads::EchoRenderOptions
 Rendering choices for format_echo_json()/format_echo_blob(), mirroring mads echo's CLI flags. More...
 

Namespaces

namespace  Mads
 

Functions

std::string Mads::format_echo_json (const std::string &topic, const nlohmann::json &payload, size_t wire_size, const EchoRenderOptions &opts)
 Formats one received JSON message for mads echo stdout.
 
std::string Mads::format_echo_blob (const std::string &topic, const std::string &format, const unsigned char *data, size_t len, const EchoRenderOptions &opts)
 Formats one received blob message for mads echo stdout.
 
std::string Mads::base64_encode (const unsigned char *data, size_t len)
 Standard base64 encoding (RFC 4648, with = padding).