qb  2.0.0.0
C++17 Actor Framework
qb Issue Watch Star Fork Follow @isndev
Loading...
Searching...
No Matches
qb::io::async::event::extracted Struct Reference

Event triggered when a connection is extracted from an I/O object. More...

#include <extracted.h>

Detailed Description

Event triggered when a connection is extracted from an I/O object.

This event is passed to the derived class's on() method when a connection is extracted from an I/O object.

Usage Example:

class MyNetworkHandler : public qb::io::async::io<MyNetworkHandler> { // Or similar base
public:
// ... other methods ...
void on(qb::io::async::event::extracted &&event) {
// Perform cleanup, attempt reconnection, etc.
}
};
CRTP base class for managing bidirectional asynchronous I/O operations with protocol processing.
Definition io.h:938