qb
2.0.0.0
C++17 Actor Framework
|
Event triggered when unprocessed data remains in the input buffer after protocol processing. More...
#include <pending_read.h>
Public Attributes | |
std::size_t | bytes |
Number of unprocessed bytes remaining in the read buffer after successful protocol message extraction. |
Event triggered when unprocessed data remains in the input buffer after protocol processing.
This event is passed to the derived class's on(qb::io::async::event::pending_read&&) method by some asynchronous input components (like qb::io::async::input or qb::io::async::io) to inform that after one or more messages were parsed by the protocol, there are still bytes remaining in the input buffer. This usually indicates a partial next message.
This event is typically informational. The remaining data will stay in the buffer to be combined with subsequent reads. It can be useful for monitoring buffer states or for protocols that might need to take action based on partially received data.
Usage Example: