C++ Actor Framework 0.19
|
Bundles protocol-independent, generic member functions for (almost all) upper layers. More...
#include <generic_upper_layer.hpp>
Public Member Functions | |
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. | |
Bundles protocol-independent, generic member functions for (almost all) upper layers.
|
pure virtual |
Called by the lower layer for cleaning up any state in case of an error or when disposed.
Implemented in caf::net::message_flow_bridge< Trait >, caf::net::http::router, caf::net::http::server, caf::net::lp::framing, caf::net::web_socket::client, caf::net::web_socket::framing, and caf::net::web_socket::server.
|
pure virtual |
Queries whether all pending data has been sent.
The lower calls this function to decide whether it has to wait for write events on the socket.
Implemented in caf::net::message_flow_bridge< Trait >, caf::net::http::router, caf::net::http::server, caf::net::lp::framing, caf::net::web_socket::client, caf::net::web_socket::framing, and caf::net::web_socket::server.
|
pure virtual |
Gives the upper layer an opportunity to add additional data to the output buffer.
Implemented in caf::net::message_flow_bridge< Trait >, caf::net::http::router, caf::net::http::server, caf::net::lp::framing, caf::net::web_socket::client, caf::net::web_socket::framing, and caf::net::web_socket::server.