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

Event triggered when the handshake is complete. More...

#include <handshake.h>

Detailed Description

Event triggered when the handshake is complete.

This event is passed to the derived class's on(qb::io::async::event::handshake&&) method when the handshake is complete.

Usage Example:

class MyIO : public qb::io::async::io<MyIO> {
public:
// ... protocol definition and other methods ...
void on(qb::io::async::event::handshake &&) {
LOG_INFO("Handshake complete.");
// Optionally, close the input stream or take other actions.
// For example, if this is a client, it might decide to disconnect.
// this->disconnect();
}
};
CRTP base class for managing bidirectional asynchronous I/O operations with protocol processing.
Definition io.h:938
#define LOG_INFO(X)
Info-level log macro (no-op if QB_STDOUT_LOG is not defined)
Definition io.h:229