9#include <FMEThirdPartyWarningsDisable.h>
12#include <FMEThirdPartyWarningsRestore.h>
22 template<
typename SessionType>
33 template<
typename Slot>
36 return connectionEstablished.connect(std::forward<Slot>(
slot));
39 template<
typename Slot>
42 return errorOccured.connect(std::forward<Slot>(
slot));
45 template<
typename Slot>
48 return aboutToBeDestroyed.connect(std::forward<Slot>(
slot));
60 connectionEstablished(socket);
70 Signal<
void(std::unique_ptr<Socket>&)> connectionEstablished;
Class template facilitating the definition of asio::Socket generators.
void emitConnectionEstablished(std::unique_ptr< Socket > socket)
SignalConnection observeErrorOccured(Slot &&slot)
static std::shared_ptr< SessionType > create(Arguments &&... arguments)
SignalConnection observeConnectionEstablished(Slot &&slot)
SignalConnection observeAboutToBeDestroyed(Slot &&slot)
void emitErrorOccured(const ErrorCode &ec)
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
boost::signals2::connection SignalConnection
boost::signals2::signal< Signature... > Signal
boost::system::error_code ErrorCode