Class PeerClient::ScopedClient
Defined in File peer_client.hpp
Nested Relationships
This class is a nested type of Class PeerClient.
Class Documentation
-
class ScopedClient
RAII helper for per-call clients: registers itself with active_clients_ on construction and unregisters on destruction. shutdown() iterates active_clients_ and calls stop() on each so blocked I/O unwinds.
Public Functions
-
ScopedClient(PeerClient &owner, const std::string &url, int timeout_ms)
-
~ScopedClient()
-
ScopedClient(const ScopedClient&) = delete
-
ScopedClient &operator=(const ScopedClient&) = delete
-
ScopedClient(ScopedClient&&) = delete
-
ScopedClient &operator=(ScopedClient&&) = delete
-
inline httplib::Client &operator*()
-
inline httplib::Client *operator->()
-
ScopedClient(PeerClient &owner, const std::string &url, int timeout_ms)