autobahn::wamp_transport_handler Class Referenceabstract

Provides an abstraction for associating a handler with a transport. More...

#include <wamp_transport_handler.hpp>

Inheritance diagram for autobahn::wamp_transport_handler:
autobahn::wamp_session

Public Member Functions

virtual void on_attach (const std::shared_ptr< wamp_transport > &transport)=0
 Called by the transport when attaching a handler. More...
 
virtual void on_detach (bool was_clean, const std::string &reason)=0
 Called by the transport when detaching a handler. More...
 
virtual void on_message (wamp_message &&message)=0
 Called by the transport when a message is received. More...
 
virtual ~wamp_transport_handler ()=default
 Default virtual destructor.
 

Detailed Description

Provides an abstraction for associating a handler with a transport.

Definition at line 47 of file wamp_transport_handler.hpp.

Member Function Documentation

virtual void autobahn::wamp_transport_handler::on_attach ( const std::shared_ptr< wamp_transport > &  transport)
pure virtual

Called by the transport when attaching a handler.

Parameters
transportThe transport being attached to.
virtual void autobahn::wamp_transport_handler::on_detach ( bool  was_clean,
const std::string &  reason 
)
pure virtual

Called by the transport when detaching a handler.

Parameters
was_cleanWhether or not the transport is cleanly detaching.
reasonThe reason for detaching.
virtual void autobahn::wamp_transport_handler::on_message ( wamp_message &&  message)
pure virtual

Called by the transport when a message is received.

Parameters
messageThe message that has been received.