Struct CallbacksConfig
Defined in File Netio3Backend.hpp
Struct Documentation
-
struct CallbacksConfig
Struct holding all callbacks for the network backend.
on_data_cb: When data is received. The data is passed as a span of const uint8_t
on_connection_established_cb: When a connection is established. Provides the address of the endpoint
on_connection_closed_cb: When a connection is closed. Provides the address of the endpoint and (for zero-copy sends) the keys of the pending send operations (otherwise possibly empty)
on_connection_refused_cb: When a connection is refused. Provides the address of the endpoint
on_send_completed_cb: When a send operation is completed. Provides the address of the endpoint and the key of the send operation
Public Members
-
OnConnectionEstablishedCb on_connection_established_cb = {nullptr}
-
OnConnectionClosedKeysCb on_connection_closed_cb = {nullptr}
-
OnConnectionRefusedCb on_connection_refused_cb = {nullptr}
-
OnSendCompleted on_send_completed_cb = {nullptr}