49 explicit Broker(uint8_t maxQoS);
55 void appear(
const std::string& clientId,
const std::string& topic, uint8_t qoS);
58 void publish(
const std::string& originClientId,
const std::string& topic,
const std::string& message, uint8_t qoS,
bool retain);
59 uint8_t
subscribe(
const std::string& clientId,
const std::string& topic, uint8_t qoS);
60 void unsubscribe(
const std::string& clientId,
const std::string& topic);
74 void sendPublish(
const std::string& clientId,
Message& message, uint8_t qoS,
bool retain);
SocketContextFactory()=default
virtual core::socket::stream::SocketContext * create(core::socket::stream::SocketConnection *socketConnection, std::shared_ptr< iot::mqtt::server::broker::Broker > broker)=0
core::socket::stream::SocketContext * create(core::socket::stream::SocketConnection *socketConnection) final