20#ifndef MADS_BROKER_PROBE_HPP
21#define MADS_BROKER_PROBE_HPP
66bool probe_broker(
const std::string &uri, std::chrono::milliseconds timeout,
67 const std::optional<ProbeCurveKeys> &curve = std::nullopt);
82 std::chrono::milliseconds timeout);
109 const std::filesystem::path &key_dir,
110 const std::string &client_key_name,
111 const std::string &server_key_name,
112 std::chrono::milliseconds timeout);
140std::optional<std::map<std::string, int>>
142 std::chrono::milliseconds timeout,
143 const std::optional<ProbeCurveKeys> &curve = std::nullopt);
bool probe_broker(const std::string &uri, std::chrono::milliseconds timeout, const std::optional< ProbeCurveKeys > &curve=std::nullopt)
Probes whether a MADS broker's settings endpoint is up and speaking the MADS wire protocol: connects ...
bool probe_tcp_port(const std::string &host, int port, std::chrono::milliseconds timeout)
Probes whether a local TCP port is accepting connections, retrying (short bounded attempts) until tim...
CurveProbeResult probe_curve_handshake(const std::string &uri, const std::filesystem::path &key_dir, const std::string &client_key_name, const std::string &server_key_name, std::chrono::milliseconds timeout)
Attempts a real CURVE handshake against uri, using the client and server keys Mads::CurveAuth::setup_...
std::optional< std::map< std::string, int > > fetch_subscription_table(const std::string &sub_uri, std::chrono::milliseconds timeout, const std::optional< ProbeCurveKeys > &curve=std::nullopt)
Reads one live subscription table off a broker that was started with [broker] subscription_table = tr...
Client-side CURVE credentials for a probe socket: the same key_dir/client/server naming convention ev...
std::string client_key_name
std::filesystem::path key_dir
std::string server_key_name