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:

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
|
pure virtual |
Called by the transport when attaching a handler.
- Parameters
-
transport The transport being attached to.
|
pure virtual |
Called by the transport when detaching a handler.
- Parameters
-
was_clean Whether or not the transport is cleanly detaching. reason The reason for detaching.
|
pure virtual |
Called by the transport when a message is received.
- Parameters
-
message The message that has been received.