Client¶
-
struct Client¶
Public Functions
-
Client() = default¶
-
inline virtual ~Client()¶
-
virtual std::string_view get_interface() const = 0¶
-
virtual std::string_view get_current_authority() const = 0¶
-
virtual std::string_view get_current_path() const = 0¶
-
virtual std::string_view get_proxy() const = 0¶
-
virtual bool ready() const = 0¶
-
virtual void start() = 0¶
-
virtual void stop() = 0¶
-
virtual void close() = 0¶
-
virtual bool refresh(std::chrono::nanoseconds now) = 0¶
-
virtual void send_text(std::string_view const &message) = 0¶
-
virtual void touch(std::chrono::nanoseconds now) = 0¶
-
virtual size_t total_bytes_received() const = 0¶
Public Static Functions
-
struct Config¶
Public Members
-
std::string_view interface¶
-
std::string_view host¶
-
bool validate_certificate = {}¶
-
std::chrono::nanoseconds connection_timeout = {}¶
-
std::chrono::nanoseconds disconnect_on_idle_timeout = {}¶
-
bool always_reconnect = {}¶
-
std::string_view query¶
-
std::string_view user_agent¶
-
std::chrono::nanoseconds request_timeout = {}¶
-
std::chrono::nanoseconds ping_frequency = {}¶
-
size_t decode_buffer_size = {}¶
-
size_t encode_buffer_size = {}¶
-
std::string_view interface¶
-
struct Connected¶
-
struct Disconnected¶
-
struct Handler¶
Public Functions
-
virtual void operator()(Disconnected const&) = 0¶
-
virtual void operator()(Disconnected const&) = 0¶
-
struct Ready¶
-
Client() = default¶