C++ Actor Framework 1.0.0
|
The lowest layer in a protocol stack. More...
#include <socket_event_layer.hpp>
Inherited by caf::net::octet_stream::transport.
Public Member Functions | |
virtual error | start (socket_manager *owner)=0 |
Starts processing on this layer. | |
virtual socket | handle () const =0 |
Returns the handle for the managed socket. | |
virtual void | handle_read_event ()=0 |
Handles a read event on the managed socket. | |
virtual void | handle_write_event ()=0 |
Handles a write event on the managed socket. | |
virtual bool | do_handover (std::unique_ptr< socket_event_layer > &next) |
Called after returning handover from a read or write handler. | |
virtual void | abort (const error &reason)=0 |
Called on socket errors or when the manager gets disposed. | |
virtual bool | finalized () const noexcept |
Queries whether the object can be safely discarded after calling abort on it, e.g., that pending data has been written. | |
The lowest layer in a protocol stack.
Called by a socket_manager directly.