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

Consumes text and binary messages from the lower layer. More...

#include <upper_layer.hpp>

Inheritance diagram for caf::net::web_socket::upper_layer:
caf::net::generic_upper_layer

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
 
- Public Member Functions inherited from caf::net::generic_upper_layer
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

Consumes text and binary messages from the lower layer.

Note
This interface gets refined further depending on whether to implement a server or a client.

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