roo_transport
API Documentation for roo_transport
Loading...
Searching...
No Matches
messaging.cpp
Go to the documentation of this file.
2
3namespace roo_transport {
4
5void Messaging::received(ConnectionId connection_id, const roo::byte* data,
6 size_t len) {
7 if (receiver_ != nullptr) {
8 receiver_->received(connection_id, data, len);
9 }
10}
11
12void Messaging::reset(ConnectionId connection_id) {
13 if (receiver_ != nullptr) {
14 receiver_->reset(connection_id);
15 }
16}
17
18} // namespace roo_transport
virtual void received(ConnectionId connection_id, const roo::byte *data, size_t len)=0
Called when message is received.
virtual void reset(ConnectionId connection_id)
Notifies that underlying connection was closed/reset.
Definition messaging.h:94
void received(ConnectionId connection_id, const roo::byte *data, size_t len)
Dispatches received message to registered receiver.
Definition messaging.cpp:5
void reset(ConnectionId connection_id)
Dispatches reset notification to registered receiver.
Definition messaging.cpp:12