Snif class remoting as an iQuicAppProtocol plugin for TsmAsyncQUICServer. Server owns the UDP listener, TLS identity and transport policy. This plugin owns ClassServer and serves each connection on a separate blocking thread; reactor callbacks only copy input or wake that thread. A connection uses client-initiated bidirectional stream zero exclusively. Authentication uses the same RFC 9266 exporter and snip framing as TLS. The plugin does not opt in to replayable QUIC early data. IDLE POLICY: QUIC's negotiated idle timeout cannot be vetoed by a plugin. TsnipQUICClient sends PINGs at less than a third of that timeout, even while the application is blocked between calls. Other clients must do likewise. Do not disable the host's idle timeout to keep a remoting channel alive: it is also what releases connections whose peers disappeared. ConnectTimeout independently bounds peers that complete QUIC but never send snip connect. Stop runs on the application's thread, signals all sessions and waits at most DrainTimeout. Sessions and serving threads retain shared dispatch state, including ClassServer, so a slow application handler cannot access a freed component when a bounded drain expires. A retained protocol adapter is detachable and refuses new sessions after component destruction. Default ALPN shares the TLS token 'snip'.
Feature notes: Snif remoting framework (concepts)
inherits from TComponent
implements iQuicAppProtocolComponent
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
function AppProtocol: iQuicAppProtocol;
procedure Start; virtual;
procedure Stop; virtual;
property ClassServer: TsnifClassServer read GetClassServer;
property ServerName: string read fServerName write fServerName;
property SessionCount: Integer read GetSessionCount;
property MaxFrameSize: Integer read fMaxFrameSize write SetMaxFrameSize default cSnipDefaultMaxFrameSize;
property Server: TsmAsyncQUICServer read fServer write SetServer;
property AlpnToken: string read fAlpnToken write SetAlpnToken;
property AlpnPriority: Integer read fAlpnPriority write SetAlpnPriority default 0;
property PadRequestsTo: Integer read fPadRequestsTo write fPadRequestsTo default 0;
property PadResponsesTo: Integer read fPadResponsesTo write fPadResponsesTo default 0;
property RequirePadding: Boolean read fRequirePadding write fRequirePadding default False;
property ConnectTimeout: Cardinal read fConnectTimeout write fConnectTimeout default 15000;
property ReadTimeout: Cardinal read fReadTimeout write fReadTimeout default cSnipNoTimeout;
property DrainTimeout: Cardinal read fDrainTimeout write fDrainTimeout default 10000;
property Active: Boolean read GetActive write SetActive default True;