A snip connection occupies client-initiated bidirectional QUIC stream zero. Its octet framing, buffering, role handshake and three-valued wait semantics are inherited from the TLS octet connection, so the stream bytes agree. Both roles are push-driven: the QUIC owner copies ordered stream bytes into the framing buffer and wakes the application/serving thread. Consume grants credit after this copy, when the octet transport has read those bytes. Waiting for an entire snip frame before granting credit deadlocks any frame larger than the initial stream window. The framing buffer has the same lifetime and message policy as its TLS counterpart. The server admits output only up to SendCapacity, then parks its serving thread until Writable or Detach. The reactor never waits for application progress. QUIC may retain send arrays read-only; each admitted slice has its own backing storage, independent of a caller's later reuse. Channel binding uses the shared RFC 9266 exporter label and length constants from TLSOctetConnection. QUIC authenticates TLS 1.3 before Opened; an absent exporter still fails closed. The client transport owns and serializes all tQuicClient operations and keeps polling while the application is waiting.
Feature notes: Snif remoting framework (concepts)
The client driver owns its UDP socket and QUIC engine. All methods are safe against its polling thread. Send waits for admission of the complete slice, rather than building an unbounded application output queue.
function Connected: Boolean;
function Send(const aBuffer: tBytes; aOffset, aCount: Integer): UInt32;
function Close: Boolean;
function ExportKeyingMaterial(const aLabel: AnsiString; aLen: Integer): tBytes;
procedure Consume(aCount: UInt64);
inherits from TsnipTLSOctetConnection
constructor Create;
destructor Destroy; override;
procedure AddStreamData(aData: Pointer; aLen: Integer);
procedure SignalPeerClosed;
inherits from TsnipQUICOctetConnection
procedure Connect(const aTransport: iSnipQUICClientTransport);
function ReadRequest(const aRequest: TsnifRequest): Boolean; override;
function ReadResponse(const aResponse: TsnifResponse): Boolean; override;
function WaitForMessage: TsnipMessageKind; override;
inherits from TsnipQUICOctetConnection
constructor Create;
destructor Destroy; override;
procedure Bind(const aTransport: iQuicAppTransport; aStreamID: UInt64 = 0);
procedure Accept;
procedure Connect(const aTransport: iQuicAppTransport; aStreamID: UInt64 = 0);
procedure Writable;
procedure Detach;
function WaitData(aMSec: Cardinal): TsnipWaitOutcome;
function ReadRequest(const aRequest: TsnifRequest): Boolean; override;
function ReadResponse(const aResponse: TsnifResponse): Boolean; override;
function WaitForMessage: TsnipMessageKind; override;
property RemoteAddress: string read GetRemoteAddress;