|
roo_transport
API Documentation for roo_transport
|
#include <messaging.h>
Public Types | |
| using | Fn = std::function< void(ConnectionId connection_id, const roo::byte *data, size_t len)> |
Public Member Functions | |
| SimpleReceiver (Fn fn) | |
| void | received (ConnectionId connection_id, const roo::byte *data, size_t len) override |
| Called when message is received. | |
Public Member Functions inherited from roo_transport::Messaging::Receiver | |
| virtual | ~Receiver ()=default |
| virtual void | reset (ConnectionId connection_id) |
| Notifies that underlying connection was closed/reset. | |
Definition at line 97 of file messaging.h.
| using roo_transport::Messaging::SimpleReceiver::Fn = std::function<void(ConnectionId connection_id, const roo::byte* data, size_t len)> |
Definition at line 99 of file messaging.h.
|
inlineexplicit |
Definition at line 101 of file messaging.h.
|
inlineoverridevirtual |
Called when message is received.
connection_id identifies receiver-side channel context and can be used for connection-affine responses via sendContinuation().
Implements roo_transport::Messaging::Receiver.
Definition at line 102 of file messaging.h.