wamp_transport.hpp
virtual ~wamp_transport()=default
Default virtual destructor.
A class that represents a wamp message in its simplest form.
Definition: wamp_message.hpp:53
virtual void set_pause_handler(pause_handler &&handler)=0
Set the handler to be invoked when the transport detects congestion sending to the remote peer and ne...
virtual void set_resume_handler(resume_handler &&handler)=0
Set the handler to be invoked when the transport detects congestion has subsided on the remote peer a...
virtual void send_message(wamp_message &&message)=0
Send the message synchronously over the transport.
virtual void attach(const std::shared_ptr< wamp_transport_handler > &handler)=0
Attaches a handler to the transport.
virtual boost::future< void > connect()=0
Attempts to connect the transport.
Provides an abstraction for a transport to be used by the session.
Definition: wamp_transport.hpp:49
virtual void detach()=0
Detaches the handler currently attached to the transport.
virtual bool is_connected() const =0
Determines if the transport is connected.
virtual bool has_handler() const =0
Determines if the transport has a handler attached.
Definition: exceptions.hpp:37
std::function< void()> resume_handler
Handler to invoke when resuming transport transmission.
Definition: wamp_transport.hpp:60
std::function< void()> pause_handler
Handler to invoke when pausing transport transmission.
Definition: wamp_transport.hpp:55
virtual boost::future< void > disconnect()=0
Attempts to disconnect the transport.