| CppWAMP
    C++11 client library for the WAMP protocol | 
Abstract base class for establishing client transport endpoints. More...
#include <cppwamp/connector.hpp>
Inherits enable_shared_from_this< Connector >.
Inherited by wamp::internal::RawsockConnector< TCodec, TEndpoint >.
| Public Types | |
| using | Ptr = std::shared_ptr< Connector > | 
| Shared pointer to a Connector. | |
| Public Member Functions | |
| virtual | ~Connector () | 
| Destructor. | |
| Protected Types | |
| using | Handler = std::function< void(std::error_code, std::shared_ptr< internal::ClientInterface >)> | 
| Asynchronous handler function type called by Connector::establish. | |
| Protected Member Functions | |
| virtual Connector::Ptr | clone () const =0 | 
| Creates a deep copy of this Connector object. | |
| virtual void | establish (Handler &&handler)=0 | 
| Starts establishing a transport connection. | |
| virtual void | cancel ()=0 | 
| Cancels a transport connection in progress.  More... | |
Abstract base class for establishing client transport endpoints.
A Connector is used to establish a transport connection from a client to a router. Once the connection is established, Connector creates a client implementation having the appropriate serializer and transport facilities.
The Session class uses these Connector objects when attempting to establish a connection to the router.
| 
 | protectedpure virtual | 
Cancels a transport connection in progress.
A TransportErrc::aborted error code will be returned via the Connector::establish asynchronous handler.