C++ Actor Framework 1.0.0
Loading...
Searching...
No Matches
caf::net::generic_upper_layer Class Referenceabstract

Bundles protocol-independent, generic member functions for (almost all) upper layers. More...

#include <generic_upper_layer.hpp>

Inheritance diagram for caf::net::generic_upper_layer:
caf::net::http::upper_layer caf::net::lp::upper_layer caf::net::octet_stream::upper_layer caf::net::web_socket::upper_layer caf::net::http::client caf::net::http::server caf::net::lp::framing caf::net::web_socket::client caf::net::web_socket::framing caf::net::web_socket::server

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.
 

Detailed Description

Bundles protocol-independent, generic member functions for (almost all) upper layers.

Member Function Documentation

◆ abort()

virtual void caf::net::generic_upper_layer::abort ( const error & reason)
pure virtual

Called by the lower layer for cleaning up any state in case of an error or when disposed.

Implemented in caf::net::http::router.

◆ done_sending()

virtual bool caf::net::generic_upper_layer::done_sending ( )
nodiscardpure 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::http::router.

◆ prepare_send()

virtual void caf::net::generic_upper_layer::prepare_send ( )
pure virtual

Gives the upper layer an opportunity to add additional data to the output buffer.

Implemented in caf::net::http::router.


The documentation for this class was generated from the following files: