qb
2.0.0.0
C++17 Actor Framework
|
Event triggered when no more data is available for reading from an input stream. More...
#include <eof.h>
Event triggered when no more data is available for reading from an input stream.
This event is passed to the derived class's on(qb::io::async::event::eof&&) method when an attempt to read from an input I/O object (e.g., TCP socket, file) yields no new data, and the input buffer (after protocol processing) is also empty. It signals that the end of the input stream has been reached or the read operation would block.
This is distinct from qb::io::async::event::disconnected, which signals a connection closure. An eof might occur on a still-open connection if the peer has simply stopped sending data.
Usage Example: