|
CppWAMP
C++11 client library for the WAMP protocol
|
An Establisher is used by internal::AsioEndpoint to create and connect a Boost.Asio socket.
Given
est: an Establisher instancehandler: a callable entity with the signature:then:
Establisher must be move-constrictible, and,| Expression | Effect |
|---|---|
Establisher::Socket | Yields the type of socket that the Establisher creates and connects. |
Establisher::SocketPtr | Yields a shared pointer type to an Establisher::Socket. |
est.establish(handler) | Establishes the socket connection, then calls handler. |
est.cancel() | Cancels an establish operation in progress. |
If an establish operation is cancelled, it shall return, via the completion handler, an error code equivalent to boost::system::errc::operation_canceled.
The following classes meet the requirements of Establisher:
wamp::internal::TcpAcceptorwamp::internal::TcpOpenerwamp::internal::UdsAcceptorwamp::internal::UdsOpener