|
C++ Actor Framework 0.19
|
Provides access to a resource that operates on the granularity of binary messages. More...
#include <lower_layer.hpp>
Public Member Functions | |
| virtual void | request_messages ()=0 |
Pulls messages from the transport until calling suspend_reading. | |
| virtual void | suspend_reading ()=0 |
Stops reading messages until calling request_messages. | |
| virtual void | begin_message ()=0 |
| Prepares the layer for an outgoing message, e.g., by allocating an output buffer as necessary. | |
| virtual byte_buffer & | message_buffer ()=0 |
| Returns a reference to the buffer for assembling the current message. | |
| virtual bool | end_message ()=0 |
| Seals and prepares a message for transfer. | |
Public Member Functions inherited from caf::net::generic_lower_layer | |
| virtual multiplexer & | mpx () noexcept=0 |
| Returns the multiplexer instance that executes this protocol stack. | |
| virtual bool | can_send_more () const noexcept=0 |
| Queries whether the output device can accept more data straight away. | |
| virtual bool | is_reading () const noexcept=0 |
| Queries whether the lower layer is currently reading from its input device. | |
| virtual void | write_later ()=0 |
| Triggers a write callback after the write device signals downstream capacity. | |
| virtual void | shutdown ()=0 |
| Shuts down any connection or session gracefully. | |
| virtual void | shutdown (const error &reason) |
| Shuts down any connection or session du to an error. | |
Provides access to a resource that operates on the granularity of binary messages.
|
pure virtual |
Prepares the layer for an outgoing message, e.g., by allocating an output buffer as necessary.
Implemented in caf::net::lp::framing.
|
pure virtual |
Seals and prepares a message for transfer.
false, clients must also call down.set_read_error(...) with an appropriate error code. Implemented in caf::net::lp::framing.
|
pure virtual |
Returns a reference to the buffer for assembling the current message.
Users may only call this function and write to the buffer between calling begin_message() and end_message().
Implemented in caf::net::lp::framing.
|
pure virtual |
Pulls messages from the transport until calling suspend_reading.
Implemented in caf::net::lp::framing.
|
pure virtual |
Stops reading messages until calling request_messages.
Implemented in caf::net::lp::framing.