Mads
Multi-Agent Distributed System
Loading...
Searching...
No Matches
agent.hpp File Reference
#include "mads.hpp"
#include <nlohmann/json.hpp>
#include <unistd.h>
#include <toml++/toml.hpp>
#include <iostream>
#include <regex>
#include <string>
#include <string_view>
#include <thread>
#include <future>
#include <zmq.hpp>
#include <zmq_addon.hpp>
#include <mutex>
#include <condition_variable>
#include <optional>
#include <span>
#include <atomic>
#include <memory>
#include "clock_offset.hpp"
#include "curve.hpp"
#include "exec_path.hpp"
#include "socket_monitor.hpp"
#include "topic_match.hpp"
#include <rang.hpp>

Go to the source code of this file.

Classes

struct  Mads::SharedLatest< T >
 
class  Mads::LazyPayload
 A received message payload that lazily holds either its JSON text or its parsed nlohmann::json form, caching whichever is produced on first use. More...
 
struct  Mads::ClockPeerObservation
 One responder's answer to Agent::broadcast_clock_probe()'s ping (clock-offset source B, see clock_offset.hpp): the raw four-timestamp sample plus the responder's identity and its own currently adopted clock offset, which is what lets an initiator compose clock_offset(mine) = responder_adopted.offset_us + estimate(sample).offset_us rather than treating a peer exchange as an unrelated measurement. More...
 
class  Mads::Agent
 

Namespaces

namespace  Mads
 

Macros

#define HOST_NAME_MAX   255
 

Functions

std::unique_ptr< AgentMads::start_agent (std::string name, std::string settings_uri, std::map< std::string, std::string > crypto_settings={})
 Quick Agent initialization function.
 

Macro Definition Documentation

◆ HOST_NAME_MAX

#define HOST_NAME_MAX   255

Definition at line 59 of file agent.hpp.