A Transport
is used to transmit WAMP messages between peers. It must provide the following minimal generic interface:
class MeetsTransport
{
public:
using RxHandler = std::function<void (Buffer)>;
using FailHandler = std::function<void (std::error_code ec)>;
size_t maxSendLength() const;
bool isStarted() const;
void start(RxHandler rxHandler, FailHandler failHandler);
void send(wamp::CodecBuffer message);
void close();
boost::asio::strand<boost::asio::any_executor> strand() const;
The following classes meet the requirements of Transport
:
wamp::internal::AsioTransport