Plugins
Covers Engine Plugin SDK 2.0.0 · Interface Plugin SDK 0.2.0
TransportCallbacks
Callbacks a transport invokes for decoded requests, telemetry, control frames, and connection state.
API
Callbacks a transport invokes for decoded requests, telemetry, control frames, and connection state.
Namespace: DARTWIC::Share.
#include <dartwic/share/DARTWICShareTransport.h>Declaration
struct TransportCallbacks {
// Dispatch on a worker independent of response correlation, preserving non-response arrival order. The protocol does not create this worker.
std::function<Response(const Request&)> on_request;
std::function<void(const Telemetry&)> on_telemetry;
std::function<void(const Control&)> on_control;
std::function<void(TransportState, std::string)> on_state;
};