12#include "../../messages/Message.hpp"
13#include "../Transport.hpp"
Definition Endpoint.hpp:24
SourceTransport(Endpoint endpoint, nlohmann::json config)
Constructs a SourceTransport with the Role::Source role.
Definition SourceTransport.hpp:31
bool transmitMessage(MessagePtr message)
Forwards a message to the attached Channel for orchestration.
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
Role
Defines the operational role of a transport relative to a channel.
Definition Transport.hpp:130
@ Source
The transport acts as a message producer for the channel.
Definition Transport.hpp:131
Transport(Role role, Endpoint endpoint, nlohmann::json config)
Constructs a transport instance.
Definition Channel.hpp:25
std::unique_ptr< Message > MessagePtr
Unique ownership handle for messages.
Definition Message.hpp:27
std::unique_ptr< SourceTransport > SourceTransportPtr
Unique ownership handle for SourceTransport.
Definition SourceTransport.hpp:48