12#include "DestinationTransport.hpp"
13#include <dfx-utilities/OwnedFd.hpp>
42 void stop() noexcept override;
DestinationTransport(Endpoint endpoint, nlohmann::json config)
Constructs a DestinationTransport with the Role::Destination role.
Definition DestinationTransport.hpp:32
Definition Endpoint.hpp:24
void stop() noexcept override
Closes the underlying file descriptor.
void start(FdWatch::Poller &poller) override
Opens the POSIX Message Queue for writing.
bool deliver(MessagePtr message) override
Serializes and writes a message to the Message Queue.
MqDestination(Endpoint endpoint, nlohmann::json config)
Initializes the MQ destination.
int64_t pendingMessageCount() const noexcept override
Queries the MQ attributes for the current message count.
Endpoint const & endpoint() const noexcept
Gets the endpoint descriptor associated with this transport.
Definition Transport.hpp:161
nlohmann::json const & config() const noexcept
Gets the JSON configuration used to initialize this transport.
Definition Transport.hpp:176
Abstract interface for FD-based event polling.
Definition Poller.hpp:37
Definition Channel.hpp:25
std::unique_ptr< Message > MessagePtr
Unique ownership handle for messages.
Definition Message.hpp:27
Definition SystemConfigCommandHandler.hpp:15