CppWAMP
C++11 client library for the WAMP protocol
|
Go to the documentation of this file.
7 #ifndef CPPWAMP_TCP_HPP
8 #define CPPWAMP_TCP_HPP
25 #ifndef CPPWAMP_COMPILED_LIB
26 #include "internal/asioconnector.hpp"
27 #include "internal/rawsockconnector.hpp"
28 #include "internal/tcpopener.hpp"
45 template <
typename TCodec>
51 #ifndef CPPWAMP_COMPILED_LIB
52 template <
typename TCodec>
55 using Endpoint = internal::AsioConnector<internal::TcpOpener>;
56 using ConcreteConnector = internal::RawsockConnector<TCodec, Endpoint>;
57 return ConcreteConnector::create(exec, std::move(host));
74 template <
typename TCodec,
typename TExecutionContext>
75 CPPWAMP_ENABLED_TYPE(
Connector::Ptr, isExecutionContext<TExecutionContext>())
77 TExecutionContext& context,
82 return connector<TCodec>(context.get_executor(), std::move(host));
87 #endif // CPPWAMP_TCP_HPP
boost::asio::any_io_executor AnyIoExecutor
Polymorphic executor for all I/O objects.
Definition: asiodefs.hpp:27
Contains the declaration of the Connector abstract base class.
Defines macros related to exporting/importing APIs.
std::shared_ptr< Connector > Ptr
Shared pointer to a Connector.
Definition: connector.hpp:43
Contains TCP host address information, as well as other socket options.
Definition: tcphost.hpp:103
Common type definitions used by transports that rely on Boost.Asio.
Definition: anyhandler.hpp:36
Contains facilities for specifying TCP transport parameters and options.
Contains general-purpose type traits.