CppWAMP
C++11 client library for the WAMP protocol
|
Go to the documentation of this file.
7 #ifndef CPPWAMP_CONNECTOR_HPP
8 #define CPPWAMP_CONNECTOR_HPP
17 #include <system_error>
26 namespace internal {
class ClientInterface;}
39 class CPPWAMP_API
Connector :
public std::enable_shared_from_this<Connector>
43 using Ptr = std::shared_ptr<Connector>;
53 std::function<void (std::error_code,
54 std::shared_ptr<internal::ClientInterface>)>;
60 virtual void establish(
Handler&& handler) = 0;
65 virtual void cancel() = 0;
78 #endif // CPPWAMP_CONNECTOR_HPP
Defines macros related to exporting/importing APIs.
boost::asio::strand< AnyIoExecutor > IoStrand
Serializes I/O operations.
Definition: asiodefs.hpp:41
std::shared_ptr< Connector > Ptr
Shared pointer to a Connector.
Definition: connector.hpp:43
Common type definitions used by transports that rely on Boost.Asio.
Definition: anyhandler.hpp:36
Abstract base class for establishing client transport endpoints.
Definition: connector.hpp:39
std::vector< Connector::Ptr > ConnectorList
List of Connector objects to use when attempting connection.
Definition: connector.hpp:74
Session API used by a client peer in WAMP applications.
Definition: session.hpp:110
std::function< void(std::error_code, std::shared_ptr< internal::ClientInterface >)> Handler
Asynchronous handler function type called by Connector::establish.
Definition: connector.hpp:54
virtual ~Connector()
Destructor.
Definition: connector.hpp:46