C++ Actor Framework 1.0.0
|
Consumes text and binary messages from the lower layer. More...
#include <upper_layer.hpp>
Public Member Functions | |
virtual ptrdiff_t | consume_binary (byte_span buf)=0 |
virtual ptrdiff_t | consume_text (std::string_view buf)=0 |
virtual error | start (lower_layer *down)=0 |
![]() | |
virtual void | prepare_send ()=0 |
Gives the upper layer an opportunity to add additional data to the output buffer. | |
virtual bool | done_sending ()=0 |
Queries whether all pending data has been sent. | |
virtual void | abort (const error &reason)=0 |
Called by the lower layer for cleaning up any state in case of an error or when disposed. | |
Consumes text and binary messages from the lower layer.