16#include <nlohmann/json.hpp>
19#include <dfx-utilities/OwnedFd.hpp>
25 std::optional<long> maxMessage;
26 std::optional<long> maxMessageSize;
28 bool hasAnyValueSet()
const noexcept;
29 mq_attr toMqAttr()
const noexcept;
32void validateConfig(nlohmann::json
const & config);
34void fillMqAttrWithConfig(
OpenAttr & attr, nlohmann::json
const & config);
35[[noreturn]]
void onMqOpenFail(std::string_view addrUsed,
OpenAttr const & attrUsed,
int err);
37Utils::OwnedFd openMq(std::string
const & addr,
int flags, nlohmann::json
const & config);
Owning RAII wrapper around a file descriptor.
Definition OwnedFd.hpp:36
Definition MqCommon.hpp:22
Definition MqCommon.hpp:24