7 #include <boost/asio.hpp> 8 #include "protocol/protocol.h" 20 virtual void start() = 0;
26 virtual void sendme(text_response_ptr response) = 0;
40 virtual const std::string&
get_login()
const = 0;
42 virtual bool is_busy()
const noexcept = 0;
43 virtual void set_busy(
bool flag =
true) noexcept = 0;
44 virtual void reuse(boost::asio::ip::tcp::socket&& _socket) = 0;
45 virtual void free_connection() = 0;
49 using subscriber_ptr = std::shared_ptr<ISubscriber>;
51 #endif // ISUBSCRIBER_H virtual const std::string & get_login() const =0
Get the login.
virtual void start()=0
Entry point to handle incoming requests.
virtual void sendme(text_response_ptr response)=0
Send response message to the client.
Channel Subscriber Interface.
Definition: isubscriber.h:13
virtual identifier_t get_client_id() const =0
Get the client id object.